// Set URL. WinHttpClient client(L"http://www.codeproject.com/"); // Send HTTP request, a GET request by default. client.SendHttpRequest(); // The response header. wstring httpResponseHeader = client.GetResponseHeader(); // The response content. wstring httpResponseContent = client.GetResponseContent(); printf((char*)httpResponseContent.c_str());
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)