Re: curl-and-python Digest, Vol 60, Issue 2

From: John Skopis <>
Date: Wed, 17 Aug 2011 17:56:59 -0500


On Wed, Aug 17, 2011 at 5:17 PM, Daniel Stenberg <> wrote:
> On Wed, 17 Aug 2011, John Skopis wrote:
>> Thanks, I wish it were that easy. Running the script results in an
>> error for me.
> So what does the curl command line tool do when you try to use it against a
> well-known HTTPS site?

The curl binary works just fine. Additionally, running strings on
libcurl shows the CAINFO path is in the library (somewhere).

Are you saying that the following should "just work"? I mean, is it
expected that curl_easy works with SSL if CAINFO is not set? Is there
a standard way of setting up CAINFO/CAPATH?

self->handle = curl_easy_init()
curl_easy_setopt(self->handle, CURLOPT_WRITEFUNCTION, w_cb);
curl_easy_setopt(self->handle, CURLOPT_WRITEDATA, self);
res = curl_easy_perform(h)
Received on 2011-08-18