How can I access the cookie specific to a URI

Discussion in 'ASP .Net' started by fred Oleary via .NET 247, Apr 30, 2004.

  1. 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>
     
    fred Oleary via .NET 247, Apr 30, 2004
    #1
    1. Advertising

  2. fred Oleary via .NET 247

    mikeb Guest

    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
     
    mikeb, Apr 30, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Simon Harris
    Replies:
    0
    Views:
    6,381
    Simon Harris
    May 10, 2005
  2. Stanimir Stamenkov
    Replies:
    1
    Views:
    2,476
    Stanimir Stamenkov
    Aug 17, 2005
  3. Pavel
    Replies:
    2
    Views:
    1,651
    Peter Flynn
    Aug 4, 2004
  4. etheriau
    Replies:
    1
    Views:
    669
    Pavel
    Aug 23, 2004
  5. Joe Curry

    Invalid URI: The format of the URI could not be determined.

    Joe Curry, Oct 8, 2003, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    344
    Joe Curry
    Oct 8, 2003
Loading...

Share This Page