This is something I am curious about since I learnt how to invoke an url and get a http response so I could parse the results in my application. Something like what Chris M says here:
Faking browser request in ASP.net C#
Now what I am wondering is how can I post a form that I download in this way, filling in the fields of the form.
I don’t really need this for my work, it’s just to kill my curiosity as a programmer 🙂
The easiest way (in C#) to simulate a form post with values:
Just for completeness, jQuery can do it more efficiently again…
If you want to inspect the html to create your POST, either use
WebBrowserand automation, or use the Html Agility Pack to look at it.