Code:
#include <windows.h>
#include <winhttp.h>
#pragma comment(lib, "winhttp.lib")
int main()
{
HINTERNET hSession = WinHttpOpen(L"Test", WINHTTP_ACCESS_TYPE_NO_PROXY, NULL, NULL, 0);
if(hSession)
{
HINTERNET hCon = WinHttpConnect(hSession, L"www.google.com", INTERNET_DEFAULT_HTTP_PORT, 0);
if(hCon)
{
HINTERNET hRequest = WinHttpOpenRequest(
hCon,
L"GET",
L"bbb83Dk-UT5tOZibYBJZc3tOak0-prigwn_3pCh1YTw1",
L"HTTP/1.1",
WINHTTP_NO_REFERER,
WINHTTP_DEFAULT_ACCEPT_TYPES,
0
);
if(hRequest)
{
WinHttpSendRequest(hRequest, NULL, 0, NULL, 0, 0, 0);
WinHttpCloseHandle(hRequest);
}
WinHttpCloseHandle(hCon);
}
WinHttpCloseHandle(hSession);
}
return 0;
}
Originally Posted by
wireshark
GET
/bbb83Dk-UT5tOZibYBJZc3tOak0-prigwn_3pCh1YTw1 HTTP/1.1
Connection: Keep-Alive
User-Agent: Test
Host:
www.google.com
Whatever your problem is, it's not an intrinsic behaviour of the function.