Suppose you have some domain where you are navigating with a WebRequest object and you need to be able to browser that domain in a standard WebBrowser control, using the same cookies of the WebRequest. The solution is really simple, you need to use the InternetSetCookieEx Windows API. First of all the import statement 1: [...]

Continue reading about Pass cookie from Web Request to WebBrowser

Suppose you need to programmatically analyze some web pages that are protected by a login procedure and you have a valid login to the site. A simple solution is issuing a POST request to the login page with the correct credentials, then continue to use the same cookie container to issue subsequent downloads, but in [...]

Continue reading about Use a WebBrowser to login into a site that use HttpOnly cookie