.net - Programmatically submit a form -


I have seen a ton of sample how to submit a form to the program (in .NET) but none of them I do not even have specific requirements I need.

The case I'm working on contains a query string (), some hidden fields and upload file.

Did anyone type such a

to check a web?

If this is the form method, you will need to send all data to the URL. This means that you can just go to and & amp; Field1 = value1 and amp; Field2 = value2 ... etc. (Field 1 is the name of field 2 id or field).

This post is likely to post the request method to post you (). However, this does not mention interesting part: What should I write in the request stream? This is (surprisingly) the same, when you apply to the URL when using the GET method:

  string request string = string.format ("field1 = {0} and Field2 = {1} ", value1, value2);  

And type this string in the request stream. All this, it should work. (You can do both of them together, for example, you can use the P = update parameter in the URL, while posting data)


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -