I\'m using webbrowser control to login any site. And then i want to download some sub page html using WebRequest (or WebClient). This links must requires authentication.
One possible way to do this is to get the cookie by using InternetGetCookie function, construct corresponding cookie object and use it for the CookieContainer
To retrieve HttpOnly cookies use InternetGetCookieEx
Here are some examples:
InternetGetCookie() in .NET
Download using Internet Explorer Cookies