A
APA
I'm having a problem saving cookies when the page I am requesting is doing a Response.Redirect. I am creating a WinForm app that will request page
from a site that is of course protected by login name and password. I have no problem logging in but the login page creates several cookies and
redirects to the member home page. During this redirect process the code doesn't stop so that I can collect the cookies for later responses (because
the cookies have user info in them that identify your later requests). Is there anyway to deal with pages that do response.redirect and get the
intermin page's response before the webrequest object goes on to the new page? I'm not using an asynchronous methods right now but was wondering if
that could be a solution. I don't know if the async method would be called when the redirect is sent. Any ideas would sure be appreciated.
from a site that is of course protected by login name and password. I have no problem logging in but the login page creates several cookies and
redirects to the member home page. During this redirect process the code doesn't stop so that I can collect the cookies for later responses (because
the cookies have user info in them that identify your later requests). Is there anyway to deal with pages that do response.redirect and get the
intermin page's response before the webrequest object goes on to the new page? I'm not using an asynchronous methods right now but was wondering if
that could be a solution. I don't know if the async method would be called when the redirect is sent. Any ideas would sure be appreciated.