1.下载
2013-02-07 v7.29.0
http://curl.haxx.se/download.html
测试发现我的工程在ios4.3模拟器和真机上curl返回35错误,CURLE_SSL_CONNECT_ERROR。在ios5,6上正常。
10.使用multi调用,也会阻塞。
CURLMcode mcode= curl_multi_add_handle(curlm_, curl);
int running = 0;
while(CURLM_CALL_MULTI_PERFORM == curl_multi_perform(curlm_, &running));
int count=0;
while (running)
{
timeval tv;
tv.tv_sec = 1;
tv.tv_usec = 0;
int max_fd;
fd_set fd_read;
fd_set fd_write;
fd_set fd_except;
FD_ZERO(&fd_read);
FD_ZERO(&fd_write);
FD_ZERO(&fd_except);
curl_multi_fdset(curlm_, &fd_read, &fd_write, &fd_except, &max_fd);
int return_code = select(max_fd + 1, &fd_read, &fd_write, &fd_except, &tv);
if (-1 == return_code)
{
break;
}
else
{
while (CURLM_CALL_MULTI_PERFORM == curl_multi_perform(curlm_, &running))
{
}
}
if(++count>100)
{
break;
}
}
CCLog("count: %d",count);
curl_multi_remove_handle(curlm_, curl);
curl_easy_cleanup(curl);
http://hi.baidu.com/jjxiaoyan/item/b187020d957a2fdcdde5b0f5
如何在android上编译curl库
http://bloodysofiya.blog.163.com/blog/static/11656234320108704954344/
首先安装一个叫做arm-linux-gnueabi的cross compiler,apt-get安装就好了
./configure --host=arm-linux CC=arm-linux-eabi-gcc --prefix=/opt/curl
然后make就好了
http://bbs.chinaunix.net/thread-3571745-1-1.html
成功在android平台用ndk上编译libcurl+openssl支持https
http://piggyq.com/pen/compile-libcurl-and-openssl-on-android-using-ndk.html
non-numeric second argument to `wordlist' function:
Ubuntu下ndk-build编译C++出以上错误,
Android ndk下编译libcurl
http://blog.csdn.net/vrix/article/details/7683212
android 编译 LIBCURL 库
http://blog.csdn.net/maikforever/article/details/6638172
http://bbs.csdn.net/topics/360096682
C++使用libcurl做HttpClient
http://blog.csdn.net/huyiyang2010/article/details/7664201