Re: Responding to Cookie Requests
From: John Saunders (johnwsaundersiii_at_notcoldmail.com)
Date: 06/14/04
- Next message: One Handed Man \( OHM - Terry Burns \): "Re: Configuration File"
- Previous message: Anand [MVP]: "RE: Configuration File"
- In reply to: Ian Mooney: "Responding to Cookie Requests"
- Next in thread: Cor Ligthert: "Re: Responding to Cookie Requests"
- Reply: Cor Ligthert: "Re: Responding to Cookie Requests"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: One Handed Man \( OHM - Terry Burns \): "Re: Configuration File"
- Previous message: Anand [MVP]: "RE: Configuration File"
- In reply to: Ian Mooney: "Responding to Cookie Requests"
- Next in thread: Cor Ligthert: "Re: Responding to Cookie Requests"
- Reply: Cor Ligthert: "Re: Responding to Cookie Requests"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|