HTTPWebRequest + Cookies problem

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Ori (orianavim_at_hotmail.com)
Date: 02/18/04


Date: 17 Feb 2004 16:16:42 -0800

Hi,

In continue to another post which I have in this news group, I was
able to find out some more details about the problem

What is my problem?

I currently build some kind of web-service which illustrates the
web-site login, some query and retrieve some data from this websites.

I have a website which I'm not able to login into (although I pass all
the variables which need to be sent) and I'm getting the same error:
"Your session has expired. Please login again.".

The wired part that if I'm taking the URL which I generate, and place
it in the IE browser, I'm login successfully, but when I'm using is
through the HTTWebRequest (doesn't matter if I'm using GET/POST) I'm
not able to login.

What I've found so far?

>From what I was able to figure out, it's something which related to
cookies. If I'm disabling the cookies on my IE I see that I'm not able
to login to the website (get the same error message).
Nevertheless, when I enables the cookies (and also succeed to login to
the website) I wasn't able to see any cookie in my cookies folder
which belongs to this website.

Is there any setting which I need to set in my HTTWebRequest object in
order to enable cookies or something like that? Does anyone has any
idea how to solve my problem ?

Thanks,

Ori.



Relevant Pages

  • HTTPWebRequest + Cookies problem
    ... I have a website which I'm not able to login into (although I pass all ... If I'm disabling the cookies on my IE I see that I'm not able ... order to enable cookies or something like that? ...
    (microsoft.public.dotnet.general)
  • HTTPWebRequest + Cookies problem
    ... I have a website which I'm not able to login into (although I pass all ... If I'm disabling the cookies on my IE I see that I'm not able ... order to enable cookies or something like that? ...
    (microsoft.public.dotnet.general)
  • Re: Help trying to login to myspace programatically in vb.net
    ... 'Dim myspacecookies As New Net.CookieContainer ... you should get the login page from a config file. ... Dim response As System.Net.WebResponse = Nothing ... ' You need to capture the cookies at this point and use ...
    (microsoft.public.dotnet.general)
  • Re: HTTPWebRequest + Cookies problem
    ... login web request should return you a cookie which has login ticket or ... Tihs way your web request will contain required cookieand web server ... If I'm disabling the cookies on my IE I see that I'm not able ... > to login to the website. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: login OWA of Exchange 2007 using .NET2003
    ... Actually the objective of my ASP.NET program is to login the FBA page ... then I will implant the cookies returned to the user's browser, ... it seems it has already logined the OWA. ... // implant the cookies returned from exchange server to user's browser ...
    (microsoft.public.exchange.development)