Re: HTTP-Request connection alive.

From: Date: Thu, 26 Oct 2006 18:52:45 +0000
Subject: Re: HTTP-Request connection alive.
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-25653@lists.php.net to get a copy of this message
On 10/26/06, Alexey Borzov <borz_off@cs.msu.su> wrote:
Hi, Atif Khan wrote: How long does it maintains persistent connection. Until you call disconnect()... Or until the server disconnects you.
Or until the script ends, of course.
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');
-- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- Justin Patrin

« previous php.pear.general (#25653) next »