libcur 导入:
1. libcur .h 文件导入
2. 导入libcur 及free函数
3.get 方法的实现代码
4.post 方法实现代码
5. curl_easy_setopt 及CURLOPT_WRITEFUNCTION 函数
.
PS:
需要定义变量部分:
using namespace::std;
static HINSTANCE hDll;
static const int _defaulttimeout = 300;
static char errorBuffer[CURL_ERROR_SIZE];
static string http_buffer;