I need to visit a URL, find a specific text box in said page – fill it with data and then submit a form.
How can I accomplish this in C#?
P.S. Innocent intentions.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’d be best looking at the
WebRequestclass (System.Net).You’ll want to look at the POST Method to post a form (click the submit button with the required fields completed).
Example:
There is a nice tutorial and lots of information on MSDN here. (Continuation of above source code)