yzbx / ZoomTest

MFC and Zoom
0 stars 0 forks source link

winhttp post #3

Open yzbx opened 7 years ago

yzbx commented 7 years ago

winhttp post

#include <Windows.h>
#include <winhttp.h>
#include <stdio.h>
#include <string>

//not start with https://
hConnect = WinHttpConnect(hSession, L"www.suimeeting.cn", INTERNET_DEFAULT_HTTP_PORT, 0);

//not start with "/login.html"
hRequest = WinHttpOpenRequest(hConnect, L"POST", L"login.html", L"HTTP/1.1", WINHTTP_NO_REFERER, WINHTTP_DEFAULT_ACCEPT_TYPES, 0);

//not start with "?a=xxx&b=xxx"
std::string data = "a=xxx&b=xxx";