469,630 Members | 1,220 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,630 developers. It's quick & easy.

The underlying connection was closed: The server committed an HTTP protocol violation

Does anyone have any experience with this problem. I am trying to post
about 20 fields of information to another server using
System.Net.WebClient.UploadData. This works fine for some servers but one
in particular is causing the exception "The underlying connection was
closed: The server committed an HTTP protocol violation" to be thrown.

I found a post that said to add a config file with the following....

<configuration>
<system.net>
<settings>
<httpWebRequest useUnsafeHeaderParsing="true" />
</settings>
</system.net>
</configuration>

When I try this, I instead get the exception "An exception occurred during a
WebClient request.". Any ideas?

Thanks,

Dan W.
Nov 21 '05 #1
0 1350

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by sumit | last post: by
3 posts views Thread by Scott McDermott | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.