Article View: borland.public.cppbuilder.internet.socket
Article #3150Re: Indy Http Server with chunked Post
From: Remy Lebeau (TeamB)
Date: Mon, 07 Nov 2005 22:49
Date: Mon, 07 Nov 2005 22:49
34 lines
2167 bytes
2167 bytes
"Koen" <no@email.com> wrote in message news:Xns9707A4DC782A1noemailcom@207.105.83.66... > I use Indy 9.0.18 That is a very old version. You should consider upgrading to the current snapshot, which is 9.0.50. > and have a problem with the Indy HTTP Server (TidHTTPServer) > When I send data via chunked Transfer-Encoding, the server does not > recognize this, and the server only fires the OnCommandGet when the > client disconnects. TIdHTTPServer does not cannot recognize chunked data at all. Only TIdHTTP is written to recognize that. And even then, TIdHTTP is not written to send chunked data, either. So how exactly are you managing to send chunked data in the first place? > when I send chunked data however, the OnCommandGet event is only > triggered when the client disconnects, and not when all data is sent. That is because the missing Content-Length header causes TIdHTTPServer to read from the connnection until it disconnects. > What should I do to handle chunked messages correctly? The only way to make TIdHTTP recognize chunked data is to re-write TIdHTTPServer's source code to recognize and handle the "chunked" Transfer-Encoding header at all. Gambit
Technical Details
Message-ID:
<436fd9fd$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<Xns9707A4DC782A1noemailcom@207.105.83.66>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,c64dd348982b9e0b 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: <Xns9707A4DC782A1noemailcom@207.105.83.66> Subject: Re: Indy Http Server with chunked Post Date: Mon, 7 Nov 2005 14:49:55 -0800 Lines: 36 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 67.116.10.113 Message-ID: <436fd9fd$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1131403773 67.116.10.113 (7 Nov 2005 14:49:33 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail