Re: httpwebrequest and cookies
- From: "Herfried K. Wagner [MVP]" <hirf-spam-me-here@xxxxxx>
- Date: Mon, 9 Jul 2007 20:58:30 +0200
"taz" <taz@xxxxxxxxxxxxxxxxxxxxxxxxx> schrieb:
i am trying to use HttpWebRequest to get the HTML of a webpage on a site.
problem is that the page is hidden behind a username-password login screen
which sets a cookie when the user has successfully logged. so, how can i get
the HTML of the required page via HttpWebRequest ? ive tried using
CookieContainer and SetCookies but im not sure im using them properly.
Take a look at the two code samples:
<URL:http://dotnet.mvps.org/dotnet/code/net/#CookieRequest>
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
.
- Prev by Date: Re: How to login to an FTP site with two usernames and two passwords
- Next by Date: Check for existing value in Combobox list
- Previous by thread: Re: httpwebrequest and cookies
- Next by thread: Page Break in Excel from VB 2005
- Index(es):