Article View: borland.public.cppbuilder.internet.socket
Article #4904Re: TIdHTTP end of content problem
From: Remy Lebeau (TeamB)
Date: Mon, 06 Dec 2004 07:42
Date: Mon, 06 Dec 2004 07:42
28 lines
2293 bytes
2293 bytes
"Ted Tripp" <ttripp@rankexec.com> wrote in message news:41b15c54$1@newsgroups.borland.com... > The resulting page stops at "AMPLIFIES THE TERROR WITH > DOOM3: RESURRECTION OF EVIL_ Santa Monica, CA " without > completing the content and it appears that somewhere after the CA > there is a special character that I am guessing IdHTTP is interpreting as > an end-of-content marker. This occurs rarely, but is a real show stopper > for some of the things I am trying to do. There is no such end-of-content character in the HTTP protocol, let alone one that makes TIdHTTP stop reading the socket for data. There are only three things that make TIdHTTP stop reading: 1) There is a "Content-Length" header present, so TIdHTTP reads until the full amount specified has been read 2) There is no "Content-Length" header present, but there is a "Transfer-Encoding" header of "chucked" present, so the socket is read in multiple blocks until no more blocks are transmitted. 3) there is no "Content-Length" or "chunked" headers present, so TIdHTTP reads the socket until a reading timeout between 2-4 seconds occurs, meaning no more data has been transmitted by the server. Gambit
Technical Details
Message-ID:
<41b40d6e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed.bit.nl!newsfeed.bit.nl!news2.euro.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41b15c54$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,6b94060483c79e05 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <41b15c54$1@newsgroups.borland.com> Subject: Re: TIdHTTP end of content problem Date: Sun, 5 Dec 2004 23:42:57 -0800 Lines: 30 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <41b40d6e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1102318958 68.69.17.41 (5 Dec 2004 23:42:38 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed.bit.nl!newsfeed.bit.nl!news2.euro.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail