🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TIdHTTP end of content problem

#4896
From: hans galema
Date: Sun, 05 Dec 2004 09:46
11 lines
1549 bytes
Ted Tripp wrote:

> Oddly, the asBigString.Length() reported an accurate size--or maybe not so 
> oddly.  Not sure why it would truncate the string and then report it a size 
> well past what it considered the end of the string.

An AnsiString can contain any byte value. Including zero as you saw.
Length() returns the amount of bytes it holds. The 'end of the string' as when
used with for instance ShowMessage is at the first encountered zero.

Hans.
Technical Details
Message-ID: <41b2d916$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.multikabel.nl!newsfeed.wirehub.nl!194.72.7.126.MISMATCH!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41b15c54$1@newsgroups.borland.com> <41b25214@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
Date: Sun, 05 Dec 2004 10:46:46 +0100
From: hans galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: TIdHTTP end of content problem
References: <41b15c54$1@newsgroups.borland.com> <41b25214@newsgroups.borland.com>
In-Reply-To: <41b25214@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 129.125.201.248
Message-ID: <41b2d916$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1102240022 129.125.201.248 (5 Dec 2004 01:47:02 -0800)
Lines: 11
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.multikabel.nl!newsfeed.wirehub.nl!194.72.7.126.MISMATCH!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail