Try putting this in your app/web.config:
<system.net>
<settings>
<httpWebRequest useUnsafeHeaderParsing="true" />
</settings>
</system.net>
If this doesn’t work you may also try setting the KeepAlive
property to false.
More Related Contents:
- How to make an HTTP POST web request
- How to post JSON to a server using C#?
- Post form data using HttpWebRequest
- Is it possible to transfer authentication from Webbrowser to WebRequest
- How to use httpwebrequest to pull image from website to local file
- The request was aborted: Could not create SSL/TLS secure channel
- Proxy Basic Authentication in C#: HTTP 407 error
- using Tor as Proxy
- How to add parameters into a WebRequest?
- How do I see the raw HTTP request that the HttpWebRequest class sends?
- How can you add a Certificate to WebClient (C#)?
- how to change originating IP in HttpWebRequest
- Is that possible to send HttpWebRequest using TLS1.2 on .NET 4.0 framework
- Does .NET’s HttpWebResponse uncompress automatically GZiped and Deflated responses?
- C# keep session id over httpwebrequest
- Add custom header in HttpWebRequest
- C# httpwebrequest and javascript
- How to get error information when HttpWebRequest.GetResponse() fails
- Getting a Request.Headers value
- HttpWebRequest and forms authentication in C#
- Getting Http Status code number (200, 301, 404, etc.) from HttpWebRequest and HttpWebResponse
- How to make my web scraper log in to this website via C#
- C# HttpWebRequest of type “application/x-www-form-urlencoded” – how to send ‘&’ character in content body?
- How to make an HTTP get request with parameters
- TLS 1.2 not negotiated in .NET 4.7 without explicit ServicePointManager.SecurityProtocol call
- Getting the Response of a Asynchronous HttpWebRequest
- Using HttpWebRequest to POST data/upload image using multipart/form-data
- HttpWebRequests sends parameterless URI in Authorization header
- Debugging failing HTTPS WebRequest
- How to know if an HTTP request header value exists