cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: how can i use libcurl to connect a https?

From: bit bull <bitbull.cn_at_gmail.com>
Date: Fri, 28 Sep 2007 15:57:03 +0800

I printf("%d\n", ret); it show 1, I found it in curl.h, it mean
CURLE_UNSUPPORTED_PROTOCOL.

then?

2007/9/28, Daniel Stenberg <daniel_at_haxx.se>:
> On Fri, 28 Sep 2007, bit bull wrote:
>
> > ret = curl_easy_perform(curl);
> >
> > if (ret)
> > printf("%s\n", strerror(ret));
> >
> > after that, I run this program, it show me "Operation not permitted".
>
> What made you think strerror() can be used on libcurl's return code? You can't
> do it like that.
>
> Either you output the error number and compare with the header file/man page
> or you use CURLOPT_ERRORBUFFER to get the human readable error string.
>
> --
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
>
Received on 2007-09-28

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET