HTTP violation

  • Thread starter Thread starter Peter Bladh
  • Start date Start date
P

Peter Bladh

Hi

I've made a part of a program that makes a http web request with .net
classes HttpWebRequest and HttpWebResponse. It's been working fine up til
now when one of our customers has been recieving the following WebException:

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

I've been "googling" a bit and read that it might help to set the KeepAlive
property to false and set the http version to 1.0, but neither have helped.


Thanks in advance!
/peter
 
You might want to run a HttpTrace or some such HTTP traffic capture program
to see what kind of requests are going across the wire. (for the ones
working and not)..
 
Hi,
that is kinda hard. I do not have access to the computer with the problem,
but he's agreed to try the patches I'm emailing him.

/peter
 
Peter said:
Hi

I've made a part of a program that makes a http web request with .net
classes HttpWebRequest and HttpWebResponse. It's been working fine up
til now when one of our customers has been recieving the following
WebException:

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

Is it running under .NET 1.1 SP1 !?

Then here might be the reason:

HTTP response split attacks, HttpWebRequest and the NET Framework 1.1 SP1
http://blogs.msdn.com/gzunino/archive/2004/09/05/225881.aspx

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
 
Hi and thanks for the tip!

How can one see if sp1 is installed (what version shows up in the .NET
Configuration)?

/peter
 
Back
Top