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 12:23:08

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

> Right now, I am testing on file:
> http://www.micro-sys.dk/sitemap.txt

I just tested that URL with both TIdHTTP and IE6.  There is a server-side
301 redirect occuring on that file, and TIdHTTP does trigger the OnRedirect
event accordingly for me.

> So... If I understand that correctly, my server
> closed connection before any response received.

No.  CheckForDisconnect() is called before the request bytes are being
transmitted.  For it to call RaiseConnClosedGracefully() immediately, the
ClosedGracefully property would have had to already been set to True before
sending the request.  Which suggests that it is not being cleared from an
earlier request/response operation.


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive