[prev in list] [next in list] [prev in thread] [next in thread] 

List:       curl-and-php
Subject:    Re: HTTP 1.1 persistent connections?
From:       Daniel Stenberg <daniel () haxx ! se>
Date:       2002-12-10 7:16:55
[Download RAW message or body]

On Mon, 9 Dec 2002, dietrich ayala wrote:

> anybody have insight on using persistent connections w/ cURL & php & ssl?

You answered this yourself in the follow-up.

> curl_setopt($ch, CURL_HTTP_VERSION_1_1, true);

This doesn't look like a valid option. At least there is no option like this
in the libcurl C API. The option I think you want is named
CURLOPT_HTTP_VERSION (notice how options always are named CURLOPT_*) and the
value to use to enforce 1.1 is CURL_HTTP_VERSION_1_1.

Not that you have to especially enforce 1.1 since it is the default.

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic