🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to avoid disconnections in each IdHTTP1->Get()?

#3006
From: Remy Lebeau (TeamB)
Date: Mon, 12 Dec 2005 17:48
24 lines
1845 bytes
"RAM" <alexandr_ryzhov@energomash.ru> wrote in message
news:439d43dd$1@newsgroups.borland.com...

> I have tried IdHTTP1->Request->Connection="Keep-Alive"; // default for
http 1.1

Did you set the ProtocolVersion property to pv1_1?

Also, try using lower-case letters only:

    IdHTTP1->Request->Connection = "keep-alive";

> How to avoid disconnections in each IdHTTP1->Get()?

Keep-alives are a negotiated feature.  It is not enough for a request to ask
for it.  The server has to agree to it as well.  If the server does not
allow the keep-alive, then there is nothing you can do to keep the
connection alive between requests.  Look at the value of the
IdHTTP1->Response->Connection property to know what the server's reply to
the keep-alive is.


Gambit
Technical Details
Message-ID: <439db82c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!atl-c02.usenetserver.com!news.usenetserver.com!atl-c07.usenetserver.com!news.usenetserver.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <439d43dd$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,c0651f8c61f5ad46
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: <439d43dd$1@newsgroups.borland.com>
Subject: Re: How to avoid disconnections in each IdHTTP1->Get()?
Date: Mon, 12 Dec 2005 09:48:30 -0800
Lines: 26
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: <439db82c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1134409772 68.69.17.41 (12 Dec 2005 09:49:32 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!atl-c02.usenetserver.com!news.usenetserver.com!atl-c07.usenetserver.com!news.usenetserver.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail