3

Hi I'm trying to write a windows application which can read HTML content of a specific website and fill some data in some input fields and submit the page.
what I did untill now was reading page content from a WebBrowser object, navigated to the website.

I know that i need to create some request/response variables and work with them, but I have no good view on what i'm trying to do.
also, my information about HttpRequest and HttpResponse is so low...

dove
  • 20,469
  • 14
  • 82
  • 108
Dr TJ
  • 3,241
  • 2
  • 35
  • 51

2 Answers2

1

HttpWebRequest is what you're looking for, examples for read/write to scrape abound.

WebClient might be simpler for you to implement but in the end is only a wrapper to the above.

Community
  • 1
  • 1
dove
  • 20,469
  • 14
  • 82
  • 108
1

You can try to use the approach described in the HttpWebRequest with https in C# thread as a starting point.

Community
  • 1
  • 1
Mikhail
  • 9,186
  • 4
  • 33
  • 49