curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: Using multi-socket facility with epoll

From: Eran Ben Horin via curl-library <curl-library_at_cool.haxx.se>
Date: Sun, 14 Oct 2018 20:16:56 +0300

Hi,

Thanks so much for your answer.
I tried it but it didn’t help …
1. Is there any way of getting the issue out of libcurl? Im using: DEBUGFUNCTION + VERBOSE, Im checking all return codes. There isn’t any error!? :)
2. Is there anything else I might be missing?

Thank you very much,
Eran

> On 14 Oct 2018, at 19:25, Sean MacLennan <seanm_at_seanm.ca> wrote:
>
> On Sun, 14 Oct 2018 18:56:59 +0300
> Eran Ben Horin via curl-library <curl-library_at_cool.haxx.se> wrote:
>
>> Hi,
>>
>> Thanks for you reply!!
>>
>> After further debugging, it seems that an ssl handshake takes place,
>> and the operation terminates right after it. I changed the protocol
>> type to HTTP, and things worked!!!
>>
>> Question:
>> 1. Does this example work for https as well?
>> 2. Do I need to do something additional, in order to “wake up” any
>> activity after the handshake finished.
>
> I bet the server is using a self-signed cert and curl is rejecting it.
>
> Try adding the following two lines:
>
> curl_easy_setopt(conn->easy, CURLOPT_SSL_VERIFYPEER, 0L);
> curl_easy_setopt(conn->easy, CURLOPT_SSL_VERIFYHOST, 0L);
>
> Cheers,
> Sean

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-10-14