Hello,
how to get all data in .php file

Example i have

webwebweb.com/work.php?worker=1&shop=52

How can i get
strings in worker to string [] worker
strings in shop to string [] shop?

Thanks in advance

Recommended Answers

You have to use WebClient class to request a URI/URL.

 using (WebClient client = new WebClient())
 {
  byte []ar=client.DownloadData("http://webwebweb.com/work.php?worker=1&shop=52");
  string str = System.Text.Encoding.UTF8.GetString(ar);
  }
Jump to Post

All 2 Replies

You have to use WebClient class to request a URI/URL.

 using (WebClient client = new WebClient())
 {
  byte []ar=client.DownloadData("http://webwebweb.com/work.php?worker=1&shop=52");
  string str = System.Text.Encoding.UTF8.GetString(ar);
  }
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.