CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2002
    Posts
    1

    HttpWebRequest in .Net

    Hello,

    Has anyone worked with HttpWebRequest with Cookie support? I need to receive page from WebServer, but for the request with cookies.

    It works well for requests without cookies. For example,

    HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://192.168.0.1/cookie/");

    HttpWebResponse response = (HttpWebResponse)request.GetResponse();
    Stream stream = response.GetResponseStream();


    But it seems, that contents of CookieContainer is simple ignored.
    Do you have any suggestions?

    Thanks,
    Vitaly Gorelov


  2. #2
    Join Date
    Feb 2002
    Posts
    13
    hello everybody!

    i've the same problem (hmm... 1 year later ....)


    can anybody explain me, how to handle cookies?
    (for example to pass a login, that requires them)

    thanks in advance


    ciao

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured