Re: HttpWebResponse Question
- From: Bob Grommes <bob@xxxxxxxxxxxxxx>
- Date: Sun, 11 Sep 2005 20:45:24 -0700
"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
.
- Follow-Ups:
- Re: HttpWebResponse Question
- From: Thaynann
- Re: HttpWebResponse Question
- References:
- HttpWebResponse Question
- From: Thaynann
- HttpWebResponse Question
- Prev by Date: Re: .NET 2.0 & USB support?
- Next by Date: Re: Casting List<> of derived class to List<> of base class?
- Previous by thread: Re: HttpWebResponse Question
- Next by thread: Re: HttpWebResponse Question
- Index(es):
Relevant Pages
|