Hi all,
I have to screen scrape a site to put into our templates. (We have the site
owners permission).
The site has a login screen, and I can successfully post credentials using
HttpWebRequest. This is not a problem.
The site then send a cookie with a sessionid. What I want to do is instead
of saving it locally on the server, is to pass the cookie onto the client,
then when another call is requested to the app host, I read the cookie from
my client and send to the host.
Any ideas as to how I can achieve this?
I am using the CookieContainer, but having never used it before, I don't
know what I am doing with it. I can get the session ID string out of the
cookie. I will assume that I do something like the old ASP, response.cookies
to send the cookie to the client. Reading the cookie should also be pretty
straightforward, something like request.cookies but then putting that cookie
back into the request to the host, how do I do that?
Thanks.
Best regards,
Dave Colliver.
http://www.LiverpoolFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available