I need to open up Internet Explorer with an URL and then read the source code of the document in C#.
Is this possible?
I know you can start processes but how can i navigate to an URL and get the source code?
I have to open it via IE, because the protocol im using to retrieve the page only works in IE.
Thanks!
Depending on your requirements there are different techniques:
Process.Start("iexplore.exe", "http://www.google.com");to run IE and then aWebCilent.DownloadStringto download the HTML source (2 HTTP requests sent to the server)