curl-library
Re: Using multi-socket facility with epoll
Date: Mon, 15 Oct 2018 15:20:46 +0200
Am 14.10.2018 um 19:16 schrieb Eran Ben Horin via curl-library:
> 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!? :)
What's the Debug and Verbose output?
You can try to run the curl tool `curl -v ...`, just to see if the request works
as expected and then create the source code with `curl --libcurl mycode.c ... `
Hth
Aleks
> 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
>
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-10-15