How do I log in to a website through a webforms application?

1

I need to automatically sign in to my webforms application and another application, and I'd like to know how best to do this. Some options I researched were the HTTPWebRequest class, Selenium Toolkit for .NET. Can anyone help me?

    
asked by anonymous 21.08.2015 / 14:50

1 answer

0

Very easy. Follow these steps:

  • Identify the type of request expected by the site: GET / POST / Other
  • Identify the parameters expected by the request
  • Use a library to make the requisitions. You can use the HttpWebRequest class as well
  • Probably the website returns something to be used in the next requisitions, so just pass this information on the next requisitions.

        
    24.08.2015 / 21:47