Accessing cookies from response object
Hi,
I'm working on a winapp that sends a httprequest to a remote server.
The server actually sends back a cookie for login request. I have
searched a lot. I didn't find the right solution for accessing the
cookies from the response object.
I tried to check the cookie count on response object which shows
always as 0. Some one please tell me how to access cookies from a
httpresponse.
Thanks,
Hari
Date:Wed, 22 Aug 2007 05:06:25 -0700
Author:
|
Re: Accessing cookies from response object
you are looking in the right place. typically with cookie authenication,
the site send a redirect to the login page, you code then posts the
login form fields (if its asp.net, your code needs to post the viewstate
from the render), and receives a cookie it can use on further request.
-- bruce (sqlwork.com)
Hari wrote:
> Hi,
>
> I'm working on a winapp that sends a httprequest to a remote server.
> The server actually sends back a cookie for login request. I have
> searched a lot. I didn't find the right solution for accessing the
> cookies from the response object.
>
> I tried to check the cookie count on response object which shows
> always as 0. Some one please tell me how to access cookies from a
> httpresponse.
>
>
> Thanks,
> Hari
>
Date:Wed, 22 Aug 2007 11:21:31 -0700
Author:
|