H
Hard Code
Hi all,
I am using the HttpWebRequest and HttpWebResponse to simulate a user
request to an intranet site. The user has to login to the site which
generates several security cookies. When the user hits my page, I want
to capture those cookies and pass them to my HttpWebRequest object so
that my simulated user request does not have to be re-authenticated.
The problem is that as far as I know, in a normal Asp.Net page I have
access to System.Web.HttpCookieCollection, and System.Web.HttpCookie.
The HttpRequest object has a CookieContainer object that is the type
System.Net.CookieContainer. I can't seem to find a way to convert my
System.Web Cookies to the System.Net CookieContainer.
Any help, suggestions or workarounds will be greatly appreciated.
Thanks.
I am using the HttpWebRequest and HttpWebResponse to simulate a user
request to an intranet site. The user has to login to the site which
generates several security cookies. When the user hits my page, I want
to capture those cookies and pass them to my HttpWebRequest object so
that my simulated user request does not have to be re-authenticated.
The problem is that as far as I know, in a normal Asp.Net page I have
access to System.Web.HttpCookieCollection, and System.Web.HttpCookie.
The HttpRequest object has a CookieContainer object that is the type
System.Net.CookieContainer. I can't seem to find a way to convert my
System.Web Cookies to the System.Net CookieContainer.
Any help, suggestions or workarounds will be greatly appreciated.
Thanks.