G
Guest
Hi
I'm trying to do a http request and read a http session.
I have looked arond a bit, but I cant find any "HttpSession" object ..
System.net
HttpWebRequest has CookieContainer to read Cookies. .. works fine
Source: http://msdn.microsoft.com/library/d...nethttpwebrequestclasscookiecontainertopic.as
Where/how do I get the Session
System.web:
I found an object called: System.Web.HttpContext and it seems to have all i need.
But I cant instance it. The constructor takes to args: System.Web.HttpRequest and System.Web.HttpResponse.
HttpRequest is no problem i just put in the filename and url and so on.
but HttpResponse takes a TextWriter as arg... doh! what should i put there??! and from where
Summary: I want to a Web Client that supports: HTTPS, Cookies, Sessions... what sould I use
So that i can create my own requests from code..
Cheer
- Anders
I'm trying to do a http request and read a http session.
I have looked arond a bit, but I cant find any "HttpSession" object ..
System.net
HttpWebRequest has CookieContainer to read Cookies. .. works fine
Source: http://msdn.microsoft.com/library/d...nethttpwebrequestclasscookiecontainertopic.as
Where/how do I get the Session
System.web:
I found an object called: System.Web.HttpContext and it seems to have all i need.
But I cant instance it. The constructor takes to args: System.Web.HttpRequest and System.Web.HttpResponse.
HttpRequest is no problem i just put in the filename and url and so on.
but HttpResponse takes a TextWriter as arg... doh! what should i put there??! and from where
Summary: I want to a Web Client that supports: HTTPS, Cookies, Sessions... what sould I use
So that i can create my own requests from code..
Cheer
- Anders