Re: Persistent HTTP connection "Keep-Alive" when posting data with IdHTTP

Giganews Newsgroups
Subject: Re: Persistent HTTP connection "Keep-Alive" when posting data with IdHTTP
Posted by:  Remy Lebeau \(Indy Team\) (re…@lebeausoftware.org)
Date: Thu, 30 Jun 2011

"Fredrik Sandedal" <fredrik.sanded…@enera.se> wrote in message
news:00ABE85554E2E340fredrik.sanded…@enera.se...

> How do I manage to keep a persistent HTTP connection to
> a HTTP server (Keep-Alive) when using a TIdHTTP component.

You can either:

1) set the ProtocolVersion property to pv1_1 and enable the
hoKeepOrigProtocol flag in the HTTPOptions property.

2) set the Request.Connection property to 'keep-alive'.

--
Remy Lebeau (Indy Team)

Replies

In response to

Persistent HTTP connection "Keep-Alive" when posting data with IdHTTP posted by Fredrik Sandedal on Tue, 28 Jun 2011