Chinaunix

标题: Curl库的curl_easy_setopt函数参数求解 [打印本页]

作者: kaede_1    时间: 2016-02-19 17:10
标题: Curl库的curl_easy_setopt函数参数求解
通过Curl库完成http调用,函数curl_easy_setopt的CURLOPT_WRITEFUNCTION和CURLOPT_WRITEDATA参数有个疑问:

我想把http的返回信息通过上面两个参数记录到一个string中,当curl_easy_perform执行报错的情况下,比如超时,那么我这个string里面会有信息吗?

多谢




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2