Accessing cookies from response object

  • Thread starter Thread starter Hari
  • Start date Start date
H

Hari

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
 
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)
 
Back
Top