Using C# and ASP.NET I want to programmatically fill in values for a web form and then 'POST' those values.
I've seen examples of others using webclient and other classes in posts such as:
How do you programmatically fill in a form and 'POST' a web page?
I am looking to carry out similar functionality - where I automatically post data to a form. In my case I am looking to submit data to simulate a login. I have a couple of questions:
1) Using the Post code in this thread, how can you determine if the Post was a success? We cant really presume a 200 response is a success. It wouldn't necessarily be correct to presume a 302 redirect signifies success either. Is there any sure fire way to determine we are logged on successfully after the post?
2) Do some sites block requests that do not originate from their own domain?