httpapi

所属分类:Windows编程
开发工具:C/C++
文件大小:11KB
下载次数:2
上传日期:2018-12-07 12:23:47
上 传 者hui363112
说明:  用c++封装的httpclient 客户端,工程文件在,下载后可以直接编译使用。
(With c++ encapsulated httpclient client, the project file in, after downloading can be directly compiled for use.)

文件列表:
httpapi\httpclient_dll.dll (14336, 2018-06-21)
httpapi\testdll.exe (9216, 2018-06-21)
httpapi (0, 2018-06-21)

/************************************************* Function: httpapi_send_request Description: 发送http请求 Input: url:请求地址 method :请求方法 《POST\GET》 postdata: 如果请求方式为post的时候,则需要, GET的话不需要 response: 请求返回内容存放的内存 rsplen: 请求返回内存的大小 Return: 0:成功 -1:失败 其他值:失败 例如400 example: 1.get: res = httpapi_send_request((char *)"http://www.genesisos.cn/MTXProject/api/mtx/getUserInfoByPhone/13157026286", (char *)"GET", NULL, response, sizeof(response)); 2.post res = httpapi_send_request((char *)"192.168.2.203:8260", (char *)"POST", (char *)"xxxxxxx", response, sizeof(response)); *************************************************/ int httpapi_send_request(char *url, char *method, char *postdata, char *response ,int rsplen);

近期下载者

相关文件


收藏者