Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How can I access the cookie specific to a URI

Reply
Thread Tools

How can I access the cookie specific to a URI

 
 
fred Oleary via .NET 247
Guest
Posts: n/a
 
      04-30-2004
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>
 
Reply With Quote
 
 
 
 
mikeb
Guest
Posts: n/a
 
      04-30-2004
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
java.net.URI.relativize(java.net.URI) not really working Stanimir Stamenkov Java 1 08-17-2005 06:24 PM
Help with error: "Invalid URI: The format of the URI could not be determined." Simon Harris ASP .Net 0 05-10-2005 04:33 PM
Re: XSLT: Relative URI "my.dtd" can not be resolved without a base URI etheriau XML 1 08-23-2004 01:54 PM
XSLT: Relative URI "my.dtd" can not be resolved without a base URI Pavel XML 2 08-03-2004 11:40 PM
Invalid URI: The format of the URI could not be determined. Joe Curry ASP .Net Web Services 0 10-08-2003 04:11 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57