费了九牛二虎之力。在网上找了很多资料。
libcurl能做什么???支持https、http、ftp、pop3、smtp、scp、sftp、tftp、等等。。。支持cookie等等。。。拿来采集什么的最方便了。。。
看官方介绍就知道有多强大了。。。http://curl.haxx.se/libcurl/
libcurl is a free and easy-to-use client-side URL transfer library, supporting DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, Telnet and TFTP. libcurl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, Kerberos), file transfer resume, http proxy tunneling and more!
libcurl is highly portable, it builds and works identically on numerous platforms, including Solaris, NetBSD, FreeBSD, OpenBSD, Darwin, HPUX, IRIX, AIX, Tru64, Linux, UnixWare, HURD, Windows, Amiga, OS/2, BeOs, Mac OS X, Ultrix, QNX, OpenVMS, RISC OS, Novell NetWare, DOS and more...
libcurl is free, thread-safe, IPv6 compatible, feature rich, well supported, fast, thoroughly documented and is already used by many known, big and successful companies and numerous applications.
使用时要定义 #define CURL_STATICLIB 这个宏
curl依赖于openssl和zlib,编译时用的zlib-1.2.5,openssl-0.9.8r。
在vc6.0能用亲测的。。。
参考:
http://blog.csdn.net/long80226/article/details/5988358
http://blog.sina.com.cn/s/blog_451aab2f010095or.html