I'm trying to reach a web page on an embedded device. I'm using WinHttp on Win32. When trying to read response I get error
ERROR_WINHTTP_INVALID_SERVER_RESPONSE 12152 The server response cannot be parsed.
But when I captured with WireShark I can see that response is coming. So to test I wrote a simple C# program. GetResponse was throwing exception
The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF
So according to below solution I set useUnsafeHeaderParsing to true. And it worked fine.
Since I can't use C# I need to find a way to set useUnsafeHeaderParsing to true for WinHttp with win32 C++
Many thanks