Re: how can i use libcurl to connect a https?
Date: Fri, 28 Sep 2007 09:37:50 +0200 (CEST)
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.htmlReceived on 2007-09-28