The implementation of HTTP_QUERY_FLAG_REQUEST_HEADERS flag on the method 'BOOL CHttpFile::QueryInfo(DWORD dwInfoLevel, CString& str, LPDWORD lpdwIndex) const'
fails with an assertion in inet.cpp, line 2307 (VC 9.00), line 2321 (VC 11.00) or line 2319 (VC 12.00).
The reason is that the assert checks ASSERT(dwInfoLevel <= HTTP_QUERY_MAX) while HTTP_QUERY_FLAG_REQUEST_HEADERS is much larger than that.
Because it is an assert it only pops up in debug. But is still annoying..
In my application I use the HTTP_QUERY_RAW_HEADERS_CRLF | HTTP_QUERY_FLAG_REQUEST_HEADERS flags to retrieve the request headers.
My working environment is Windows 2008 Server (with service packs), Windows 7 Pro (SP1), Windows 8 Pro.
Development in C++ using both Visual Studio 2008 (All SPs and updates), Visual Studio 2012 (Update 4, RC3) and Visual Studio 2013 RTM.