Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Sep : Re: id http missing redirect?

www.cryer.info
Managed Newsgroup Archive

Re: id http missing redirect?

Subject:Re: id http missing redirect?
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Tue, 11 Sep 2007 10:32:07

"dk_sz" <dk_sz@hotmail.com> wrote in message
news:46e6647b$1@newsgroups.borland.com...

> Sometimes with requests that I KNOW redirects...
> I will get response code 200... And OnRedirect not called
> (even though both event handler + HandleRedirects set)

Then a server-side redirect is not actually occuring.  There are two types
of redirects:

1) server-side, which use the 3xx range of response codes (except for 304)
and sends a "Location" reply header to specify where the redirect is going.

2) client-side, which uses browser scripting or an HTML <meta> tag

The OnRedirect event is only triggered for #1.  TIdHTTP has no handling for
#2 at all (since it doesn't process the contents of the requested data at
all).

> I can only suspect it must be related to prior request
> or something like that for it appears somewhat random
> which redirects that fail and which succeed...

Then I suggest you use a packet sniffer to look at the actual
request/response packets to see what is different between each request.


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive