🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TIdHTTPClient read blocking when keep-alive is enabled

#1096
From: Remy Lebeau (TeamB)
Date: Mon, 07 May 2007 17:23
20 lines
1577 bytes
<emerson.pardo@gmail.com> wrote in message
news:1178554180.638229.240770@e65g2000hsc.googlegroups.com...

> IdHTTP -> ProtocolVersion << pv1_1;

ProtocolVersion is not a Set.  You need to use the '=' operator
instead:

    IdHTTP -> ProtocolVersion = pv1_1;

>         // next lines replace IdHTTP -> Get("http://localhost:81")

Why are you replacing Get()?  You should not be doing that at all.
You are completely bypassing everything TIdHTTP handles for you about
the HTTP protocol.  Your code is much to minimal to handle HTTP
properly.


Gambit
Technical Details
Message-ID: <463f6182$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <1178218514.079295.14020@q75g2000hsh.googlegroups.com> <1178554180.638229.240770@e65g2000hsc.googlegroups.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,cb0a8671aaf0de86
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: <1178218514.079295.14020@q75g2000hsh.googlegroups.com> <1178554180.638229.240770@e65g2000hsc.googlegroups.com>
Subject: Re: TIdHTTPClient read blocking when keep-alive is enabled
Date: Mon, 7 May 2007 10:23:20 -0700
Lines: 22
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: 75.82.60.244
Message-ID: <463f6182$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1178558850 75.82.60.244 (7 May 2007 10:27:30 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail