I have an HTTPHandler class that is making an HTTP request string with the
HttpWebResponset.GetResponse, but gets an error at The server committed a protocol violation. Section=ResponseStatusLine.
I ran some search and found a way to solve this issue by modifying some parameters directly through the configuration file as follow and I got a Warning and an Error at The element 'system.web' has invalid child element 'system.net'. and Unrecognized configuration section system.web/system.net. Can someone tell me why I got this error and how do I fix this to make it works? thanks a lot!
<httpWebRequest useUnsafeHeaderParsing="true" />
unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the
error and where it originated in the code.
Exception Details: System.Net.WebException: The server committed a protocol violation. Section=ResponseStatusLine