🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #4903

Re: TIdHTTP end of content problem

#4903
From: Remy Lebeau (TeamB)
Date: Mon, 06 Dec 2004 07:46
21 lines
2062 bytes
"Ted Tripp" <ttripp@rankexec.com> wrote in message
news:41b22d1e$1@newsgroups.borland.com...

> I didn't think that value was reliable--value, I believe, comes
> from server and may or may not be accurate if it exists at all.
> Correct?

It is only unreliable if the data being requested is dynamic in nature and
changes between requests.  As per the HTTP RFCs, it is the server's
responsibility to provide an accurate Content-Length header only at the time
of the specific request being processed at the time.  If the data changes
before another request is received, there is nothing the server can do about
that other than to provide an updated Content-Length value in response to
the next request.  It is the client's responsibility to use the
Content-Length that is provided with the actual data, not to request the
Content-Length first and then make a separate request to get the actual
data.


Gambit
Technical Details
Message-ID: <41b40e33$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!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
References: <41b15c54$1@newsgroups.borland.com> <41b1f061@newsgroups.borland.com> <41b22703@newsgroups.borland.com> <41b22bc8@newsgroups.borland.com> <41b22d1e$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> <41b1f061@newsgroups.borland.com> <41b22703@newsgroups.borland.com> <41b22bc8@newsgroups.borland.com> <41b22d1e$1@newsgroups.borland.com>
Subject: Re: TIdHTTP end of content problem
Date: Sun, 5 Dec 2004 23:46:18 -0800
Lines: 23
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: <41b40e33$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1102319155 68.69.17.41 (5 Dec 2004 23:45:55 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!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