Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Is there any way to override ERROR_WINHTTP_INVALID_SERVER_RESPONSE in WinHttpReceiveResponse?

$
0
0

Is there any way to override ERROR_WINHTTP_INVALID_SERVER_RESPONSE in WinHttpReceiveResponse?

For example, it appeared when downloading some link(I cannot paste the url here because "

  • Body text cannot contain images or links until we are able to verify your account.

"), which can be downloaded by wget, and IE.

Looks the server’s response has invalid header. While using c# code, it throw out exception as :Additional information: The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF

In .net framework there is an option UseUnsafeHeaderParsing to override this issue.

But in the WinHTTP API, I could not find any configuration related to this.


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>