By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,943 Members | 1,890 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,943 IT Pros & Developers. It's quick & easy.

How can I access the cookie specific to a URI

P: n/a
Hi, I'm using HTTPWebRequest/HTTPWebResponse to automate accessto a website. To bypass the authentication pages, I'd like toappend the PC stored cookie in my initial"myHttpWebRequest.GetResponse()" call. Using this I am hoping tothen directly access specific data in the website. I'm fairlynew to some of this but it seems I need to attach the cookiestored on the client PC to the HTTP GET request. (I.E. does it.Does anyone know how to programatically?)

Thanks

--------------------------------
From: fred Oleary

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>0Ox2XgTilUirAz72wW74IA==</Id>
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
fred Oleary via .NET 247 wrote:
Hi, I'm using HTTPWebRequest/HTTPWebResponse to automate access to a website. To bypass the authentication pages, I'd like to append the PC stored cookie in my initial "myHttpWebRequest.GetResponse()" call. Using this I am hoping to then directly access specific data in the website. I'm fairly new to some of this but it seems I need to attach the cookie stored on the client PC to the HTTP GET request. (I.E. does it. Does anyone know how to programatically?)


You should be able to add the cookie header to the collection of HTTP
headers that you get from the HttpWebRequest.Headers properties.

--
mikeb
Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.