Send User-Agent through CONNECT and POST with WinHTTP?
- by Duncan Bayne
I'm trying to POST to a secure site using WinHttp, and running into a problem where the User-Agent header isn't being sent along with the CONNECT.
I am using a lightly-modified code sample from MSDN:
HINTERNET hHttpSession = NULL;
HINTERNET hConnect = NULL;
HINTERNET hRequest = NULL;
WINHTTP_AUTOPROXY_OPTIONS AutoProxyOptions;…