Hi, I am performing two parallel requests to my web service using WebClient and multithreading them with ThreadPool. However, I'm having an issue in one of the threads where I get this WebException:
The server committed a protocol violation. Section=ResponseStatusLine
I did some research and found that it could be an unsafe header validation issue, but the requests work fine in single thread mode.
So just to clarify, I am firing off two threads. One is doing a GET of a URI, and one is doing a POST of some data to a URI. The first GET works fine, but the POST fails with the WebException above.
Any ideas? Thanks.