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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top