winHTTP GET request C++
问题 I'll get right to the point. This is what a browser request looks like GET /index.html HTTP/1.1 This is what winHTTP does GET http://site.com/index.html HTTP/1.1 Is there any I can get the winHTTP request to be the same format as the regular one? I'm using VC++ 2008 if it makes any difference 回答1: Your code should look like this: // Specify an HTTP server. if (hSession) hConnect = WinHttpConnect( hSession, L"www.example.com", INTERNET_DEFAULT_HTTP_PORT, 0); // Create an HTTP request handle.