Search code examples
c#httpwebrequesthttprequesthttpresponsewinforms-to-web

how to create a win app which can interact with a website?


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...


Solution

  • 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.