Re: Responding to Cookie Requests

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: John Saunders (johnwsaundersiii_at_notcoldmail.com)
Date: 06/14/04


Date: Mon, 14 Jun 2004 08:17:46 -0400


"Ian Mooney" <ian.mooney@nospam.tpg.com.au> wrote in message
news:eDiITUZUEHA.3512@TK2MSFTNGP12.phx.gbl...
> I'm using the HttpWebRequest and HttpWebResponse components to
automatically
> scrape content from various internet news sites to store on my iPaq PDA
> which I later read off-line while commuting to/from work. I don't have
room
> on the PDA for all the associated advertising stuff these sites have, so I
> filter out all but the important text.
>
> It's worked a treat until recently when 1 of the sites I read upgraded.
> When I browsed to it using IE, I had to sign-on and accept a cookie from
the
> server. On subsequent visits to the site using IE, the cookie is read and
> the sign-on is bypassed automatically.
>
> Does anyone now how I can automate the reply to the cookie request inside
a
> dotNet application?

Ian,

There isn't actually a "cookie request". Instead, the web client (or
browser) sends on each request the cookies appropriate to the request. This
is determined by the domain and path of the cookie vs. the domain and path
of the request. It is further determined by client privacy settings.

In order to do this in a program, you should look at the
System.Net.CookieContainer class.

-- 
John Saunders
johnwsaundersiii at hotmail


Relevant Pages

  • Re: Responding to Cookie Requests
    ... > I'm using the HttpWebRequest and HttpWebResponse components to ... > When I browsed to it using IE, I had to sign-on and accept a cookie from ... > Does anyone now how I can automate the reply to the cookie request inside ... There isn't actually a "cookie request". ...
    (microsoft.public.dotnet.framework)
  • Re: Responding to Cookie Requests
    ... > I'm using the HttpWebRequest and HttpWebResponse components to ... > When I browsed to it using IE, I had to sign-on and accept a cookie from ... > Does anyone now how I can automate the reply to the cookie request inside ... There isn't actually a "cookie request". ...
    (microsoft.public.dotnet.general)
  • Responding to Cookie Requests
    ... I'm using the HttpWebRequest and HttpWebResponse components to automatically ... scrape content from various internet news sites to store on my iPaq PDA ... When I browsed to it using IE, I had to sign-on and accept a cookie from the ... Does anyone now how I can automate the reply to the cookie request inside a ...
    (microsoft.public.dotnet.languages.vb)
  • Responding to Cookie Requests
    ... I'm using the HttpWebRequest and HttpWebResponse components to automatically ... scrape content from various internet news sites to store on my iPaq PDA ... When I browsed to it using IE, I had to sign-on and accept a cookie from the ... Does anyone now how I can automate the reply to the cookie request inside a ...
    (microsoft.public.dotnet.framework)
  • Responding to Cookie Requests
    ... I'm using the HttpWebRequest and HttpWebResponse components to automatically ... scrape content from various internet news sites to store on my iPaq PDA ... When I browsed to it using IE, I had to sign-on and accept a cookie from the ... Does anyone now how I can automate the reply to the cookie request inside a ...
    (microsoft.public.dotnet.general)