cURL / Mailing Lists / curl-library / Single Mail

curl-library

Problem found testing the sample code

From: lyx <sdulyx_at_163.com>
Date: Wed, 27 Apr 2016 22:56:21 +0800 (CST)

Hi All,
I'm testing libcurl sample code in my ubuntu. This code is as listed in https://curl.haxx.se/libcurl/c/sendrecv.html. I copied it from above webpage and compiled in my ubuntu. I enabled VERBOS option and changed the URL to https://www.baidu.com to test customized send and recv under https protocol. I find the sample code worked sometimes I run it while failed to work in other times. The sample code will not display any https reply or can only display part of the reply. If I only use curl_easy_perform to test this website without using recv and send function, it worked every time.

Is there any bugs in the sample in https://curl.haxx.se/libcurl/c/sendrecv.html?

Thanks

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-04-27