CURLOPT_SSL_VERIFYHOST option issue when doing https ?

if I don’t put
curl_easy_setopt(handle, CURLOPT_SSL_VERIFYHOST, 0);
in httpcClient.cpp; bool configureCURL(CURL *handle)

I get this error trying to do https (on the twitter api)

“SSL certificate problem: unable to get local issuer certificate”

another strange thing with libcurl:

I can do https on iOS but on android i get this error:

Protocol https not supported or disabled in libcurl

If you’re using Eclipse, some of the path are not ‘included’, even if you specified them in your code, you have to add those path with the IDE itself

Hello,

I don’t have issues at the compiling time, but at execution time.

Anyway the lib curl is actually shipped already compiled.

IMO there is a problem with the android compilation options, inside the android shipped libcurl. (for my second problem: “Protocol https not supported or disabled in libcurl”)

You can try AssetsManager, it uses url starts with “https”.

Minggo: can’t we fix the android libcurl instead ?
that would be more convinient

Yep, if there is a bug of libcurl.a, we should fix it.
But i can not reproduce it.
Because i can use it to access https web site.

I created a repo for building it https://github.com/minggo/libcurl-build.

you can do https with it on android ?
because it’s working for me on iOS, but not on android.

Yep, you can run AssetsManagerTest on android.

i meant: does https works for you using the libcurl.a on android ?

I don’t want to use 2 different methods on iOS and android, i’d rather understand my problem with the libcurl.

I updated the android lib, (i was in cocos2d-2.1beta3-x-2.1.1)
and it fixed the problem.

But I had to put

curl_easy_setopt(handle, CURLOPT_SSL_VERIFYHOST, 0);
in httpcClient.cpp; bool configureCURL(CURL *handle)

otherwise it’s NOT working in android either.

I will checkout it.
Thank you.