Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool bPost = wcscmp(this->wszMethod, METHOD_POST) == 0;
- WChar wszPath = bPost || this->sQueryString.isEmpty() ?
- this->sRequestPath : (this->sRequestPath+"?"+this->sQueryString);
- HINTERNET hRequest = WinHttpOpenRequest(hConnect, this->wszMethod, wszPath, NULL, WINHTTP_NO_REFERER,
- WINHTTP_DEFAULT_ACCEPT_TYPES, WINHTTP_FLAG_SECURE);
- if (!hRequest) {
- WINERR iErr = GetLastError();
- WinHttpCloseHandle(hConnect);
- WinHttpCloseHandle(hSession);
- return iErr;
- }
Advertisement
Add Comment
Please, Sign In to add comment