OS: Windows XP SP3. Application should download the picture from the website via https
protocol. As a result, WinHttpSendRequest returns an error -2146893018. Here is the code snippet:
What I have tried:
hRequest = WinHttpOpenRequest(hConnect, L"GET", Path, Protocol, 0, 0, WINHTTP_FLAG_SECURE);
bResults = WinHttpSendRequest(hRequest, WINHTTP_NO_ADDITIONAL_HEADERS, 0,
WINHTTP_NO_REQUEST_DATA, 0, 0, 0);
This problem is only on WinXP. On Windows 7 - everything works fine.
But if try to download another image from another website via http
protocol (replacing WINHTTP_FLAG_SECURE with 0), then everything works fine. What's wrong?