Guest User

Untitled

a guest
Sep 5th, 2012
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. bool bPost = wcscmp(this->wszMethod, METHOD_POST) == 0;
  2. WChar wszPath = bPost || this->sQueryString.isEmpty() ?
  3. this->sRequestPath : (this->sRequestPath+"?"+this->sQueryString);
  4. HINTERNET hRequest = WinHttpOpenRequest(hConnect, this->wszMethod, wszPath, NULL, WINHTTP_NO_REFERER,
  5. WINHTTP_DEFAULT_ACCEPT_TYPES, WINHTTP_FLAG_SECURE);
  6. if (!hRequest) {
  7. WINERR iErr = GetLastError();
  8. WinHttpCloseHandle(hConnect);
  9. WinHttpCloseHandle(hSession);
  10. return iErr;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment