Is it possible to pass parameters with an HTTP
get request? If so, how should I then do it? I have found an HTTP
post requst (link). In that example the string postData
is sent to a webserver. I would like to do the same using get instead. Google found this example on HTTP
get here. However no parameters are sent to the web server.
My preferred way is this. It handles the escaping and parsing for you.
WebClient webClient = new WebClient();
webClient.QueryString.Add("param1", "value1");
webClient.QueryString.Add("param2", "value2");
string result = webClient.DownloadString("http://theurl.com");