Re: HttpWebResponse Question



"Enable cookies in your browser" would indicate that the web server is determining (accurately or not) that your client does not have cookies enabled. The "client" in this case is the HttpWebResponse object. I have not encountered this particular problem but here are some thoughts that occur to me offhand:

1) Is the target page part of a secure area such that it's looking for some kind of credential cookie? It's possible that the reason it has worked intermittently in the past is that you interactively accessed the page, established your credentials, and that cookie was in the cache when your program went back a little later to access the page.

2) Can you figure out what test the target page is using to test for cookies being enabled? Armed with that knowledge, can you give it the response it's looking for? Possibly something involving the Cookies property of HttpWebResponse?

--Bob

Thaynann wrote:
I ham tryin to access a website, the first time i send a GET to display the first page it displays the HTML code, but always with text "Enable Cookies In Your Browser", is there a way to have it not display that and display the actual page, i did get it at some stage, ut that involved a bit of recursion, by callin the method again (from within itself) and that allowed the page to be displayed.

But when i have tried to call a POST request, it displays the Enable Cookies In Your Browser page again, and this time, on amount of recursion can save it.

Any ideas, if u need this to be more clearly displayed, ill send some code over
.



Relevant Pages

  • Re: HttpWebResponse Question
    ... browser based on the user agent string. ... >I ham tryin to access a website, the first time i send a GET to display the ... > first page it displays the HTML code, but always with text "Enable Cookies ... > In Your Browser page again, and this time, on amount of recursion can save ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Cookies Settings - Re-enable
    ... Q175662 - Error Message Not Accepting Cookies: ... 299331 - Web Site Reports That You Must Enable Cookies: ... Q317689 - Error Message Your Browser Is Not Currently Set to Accept Cookies: ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Cookies Settings - Re-enable
    ... Get a different web browser and start over. ... >> Q175662 - Error Message Not Accepting Cookies: ... I downloaded instructions on>>> how to enable cookies in your browser and checked all ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: MS Antispyware & Hotmail Cookies
    ... Suggest disabling any firewall until cookies are working correctly. ... Web Site Reports That You Must Enable Cookies ... The weird thing is that it's intermittent - sometimes I can get into hotmail no problem, and other times I can't access either my paid or free account. ...
    (microsoft.public.windowsxp.general)
  • Re: Cookies Settings - Re-enable
    ... Get a different web browser ... >>> how to enable cookies in your browser and checked all ... >>> settings and cookie selection buttons under Internet ... How to re-establish or enable cookies on the ...
    (microsoft.public.windows.inetexplorer.ie6.browser)