How to login to a website through a webforms application?

Asked

Viewed 233 times

1

I need to log in automatically to my application webforms and other application, and I would like to know how best to do this. Some options I searched for were the Httpwebrequest class, Selenium Toolkit for .NET. Can anyone help me?

  • And what did you do? What is your question? Read the [tour] and the [Ask].

  • Hello, sorry I didn’t quite understand your question. You already have a web application and need to use it to log in to another ?

1 answer

0

Very easy. Follow these steps:

  1. Identify the type of request expected by the site: GET/POST/Other
  2. Identify the parameters expected by the request
  3. Use a library to make the requests. You can use the Httpwebrequest class as well

Probably the website returns something to be used in the next requests, so just pass this information on the next requests.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.