Re: HttpWebRequest with cookies



"SP" <dario.zandolin@xxxxxxxxx> 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/>

.



Relevant Pages

  • Re: httpwebrequest and cookies
    ... "taz" schrieb: ... which sets a cookie when the user has successfully logged. ... M S Herfried K. Wagner ...
    (microsoft.public.dotnet.languages.vb)
  • Re: How to retrieve raw HTTP Post Data
    ... in the html payload, the cookie is in the header, and is just before the ... Is there a way to separate the POST data? ... On Nov 15, 12:48 pm, bruce barker ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Fairly serious vulnerability in vBulletin 2.2.0
    ... > Ensure that $bbuserid, $bbpassword, and the rest of the cookied variables ... > are coming from the cookie and not from GET or POST data, ... create your own cookie jar with the appropriate data. ...
    (Bugtraq)