WebBrowser Control download file in session
问题 I'm using WebBrowser control to navigate through a login page and download a file. Since I can't find a way to manage the download automatically with the control I'm using the WebClient class to try and achieve this. Problem is that since the WebClient isn't in the same context/session as the browser all i'm downloading is the Security Error screen. Any ideas on how I can pass the context of the WebBrowser session to the WebClient ? 回答1: It should be simply a matter of emulating the cookies