Re: HTTP-Request connection alive.
| From: | Alexey Borzov | Date: | Thu, 26 Oct 2006 17:18:34 +0000 |
| Subject: | Re: HTTP-Request connection alive. | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25652@lists.php.net to get a copy of this message | ||
Hi,
Atif Khan wrote:
How long does it maintains persistent connection.Until you call disconnect()... Or until the server disconnects you.
Alexey Borzov wrote:Hi, Atif Khan wrote:$req =& new HTTP_Request; $req->addHeader("Connection: Keep-Alive"); Is this correct syntax to keep a persistent connection.No, the correct one is: $req->addHeader('Connection', 'Keep-Alive');