Joaquim Margarido

Joaquim Margarido

  • 1.9k
  • 16
  • 507

The correct and working way to login with HtmlWebRequest.

Nov 17 2020 6:53 AM
Hi,
I need to scrape a site, so my problem is how can I login to the site fill in the input boxes with username and password and emulate a click in the button login.
I've seen many examples but there is always  something missing because they don't work. I would like to use htmlwebrequest if possible, if not, something that works.
I've already done this with WebBrowser but now it stopped working because the site says the certificate is invalid and I've tried everything but I can't overcome this problem.
Thank you for your help. 

Answers (1)