curl-and-python

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

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

O

On Wed, Aug 17, 2011 at 5:17 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Wed, 17 Aug 2011, John Skopis wrote:
>
>> Thanks, I wish it were that easy. Running the test.py 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);
curl_easy_setopt(self->,CURLOPT_URL,strdup("https://www.google.com"))
res = curl_easy_perform(h)
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2011-08-18