I've been having a little problem with the WebClient class, and am hoping someone can help.
Here is what I'm currently working with:
string uri = "www.exampleURL.com
byte postBytes = Encoding.ASCII.GetBytes(po
byte postBytes2 = Encoding.ASCII.GetBytes(po
WebClient myClient = new WebClient();
byte response = myClient.UploadData(uri, postBytes);
string myresponse = Encoding.ASCII.GetString(r
response = myClient.UploadData(uri2, postBytes2);
Here is where I hit my wall.
After I upload the first queryString, the next step in the process is returned.
The URL does not change, but when I go to post the next section of values, it posts them back to the first page/form part.
So, basically I'm filling a form on my website, and then taking the values and using these to complete a form on another site, then parsing the result and using what is relevant. The form on the other site is all on the same page, but goes through roughly 4 button clicks, or Posts. When I try and run the second, it posts to the first. I've looked through the WebRequests and WebClient classes, but haven't seen how to keep everything in sequence.
Can anyone point me to How I can post my second querystring to the returned page from the first request?