|Subject:||Re: KeepAlive with TIdHttp|
|Posted by:||Remy Lebeau \(Indy Team\) (firstname.lastname@example.org)|
|Date:||Mon, 1 Oct 2007|
"Thomas Bergerot" <email@example.com> wrote in message
> When i connect to the server with the client (using TIdHttp),
> the connection is closed right after the request.
TIdHTTP uses HTTP v1.0 by default, which does not normally use keep-alives.
> When i connect using a normal browser, the connection is kept alive
The browser is likely using HTTP v1.1 instead, which does use keep-alives by
> How can i make it work with my TIdHttp client ?
Set the ProtocolVersion property to pv1_1, and/or set the Request.Connection
property to 'keep-alive'.
KeepAlive with TIdHttp posted by Thomas Bergerot on Sun, 30 Sep 2007