curl-and-php
HTTP 1.1 persistent connections?
Date: Mon, 9 Dec 2002 12:28:36 -0800
anybody have insight on using persistent connections w/ cURL & php & ssl?
first call works fine, but on second call the script times out (curl not
letting go of connection?)
basically, i'm doing this:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $hostURL);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURL_HTTP_VERSION_1_1, true);
curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $this->outgoing_payload);
then, for second call, i use same curl handle:
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $this->outgoing_payload);
$this->incoming_payload = curl_exec($ch);
then i call:
curl_close($ch);
thanks for any help!
dietrich
----- Original Message -----
From: "Daniel Stenberg" <daniel_at_haxx.se>
To: "curl and php list" <curl-and-php_at_lists.sourceforge.net>
Sent: Sunday, December 08, 2002 11:15 PM
Subject: Re: cURL, PHP & Javascript
> On Wed, 4 Dec 2002, David Withnall wrote:
>
> > The javascript that they use to get it is
> >
> > sessionID = parent.content.document.all("SessionID")
> >
> > this is then used like this
> >
> > parent.content.location = "blah&sessionID" + sessionID
>
> So, do a network trace to see what kind of URL that usually seems to
become
> when you follow the link and your browser, and try to figure out from that
> what the function call above means.
>
> Or get a book or a tutorial or something on javascript!
>
> --
> Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
>
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-12-09