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

Re: HTTP violation by Girish

Girish
Mon Sep 27 05:10:59 CDT 2004

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)..


--
Girish Bharadwaj
http://msmvps.com/gbvb
"Peter Bladh" <peter.bladh@danahermotion.se> wrote in message
news:Ol%237BKHpEHA.1272@TK2MSFTNGP09.phx.gbl...
> 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
>
>



Re: HTTP violation by Peter

Peter
Mon Sep 27 05:28:03 CDT 2004

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


"Girish bharadwaj" <girishb@mvps.org> wrote in message
news:uMn9KpHpEHA.2536@TK2MSFTNGP10.phx.gbl...
> 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)..
>
>
> --
> Girish Bharadwaj
> http://msmvps.com/gbvb
> "Peter Bladh" <peter.bladh@danahermotion.se> wrote in message
> news:Ol%237BKHpEHA.1272@TK2MSFTNGP09.phx.gbl...
> > 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
> >
> >
>
>



Re: HTTP violation by Jochen

Jochen
Mon Sep 27 06:10:11 CDT 2004

Peter Bladh wrote:

> 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/

Re: HTTP violation by Peter

Peter
Mon Sep 27 08:16:08 CDT 2004

Hi and thanks for the tip!

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

/peter


"Jochen Kalmbach" <nospam-Jochen.Kalmbach@holzma.de> wrote in message
news:Xns957185F73118BnospamJochenKalmbach@207.46.248.16...
> Peter Bladh wrote:
>
> > 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/