Home All Groups Group Topic Archive Search About

HttpWebRequest with cookies

Author
21 Feb 2006 9:55 AM
SP
I need to make an httpwebrequest in a winform.
The first call is ok, and it is in GET.
The second must use the cookie of the first call and then POST data to
a uri.

The are some sample code for manage cookies?

Author
21 Feb 2006 11:40 AM
Herfried K. Wagner [MVP]
"SP" <dario.zando***@gmail.com> schrieb:
>I need to make an httpwebrequest in a winform.
> The first call is ok, and it is in GET.
> The second must use the cookie of the first call and then POST data to
> a uri.

Check out the code snippets at
<URL:http://dotnet.mvps.org/dotnet/code/net/#CookieRequest> which
demonstrate two different ways of handling cookies in .NET.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>