Re: Please help! HTTP protocol violation error using HttpWebRequest
- From: Joerg Jooss <news-reply@xxxxxxxxxxxxx>
- Date: Mon, 13 Feb 2006 07:10:55 +0000 (UTC)
Thus wrote Tom,
Hello all:
I have a method that does a POST to a secured website using
HttpWebRequest. It worked when logging in the site, but it failed with
an HTTP prococol violation error when it is used to retrieve a report.
Error: The underlying connection was closed: The server committed an
HTTP protocol violation.
I have tried to the set useUnsafeHeaderParsing to true in the app
config file, but it still does not work.
<system.net>
<settings>
<httpWebRequest useUnsafeHeaderParsing="true" />
</settings>
</system.net>
Please tell me what I did wrong in the following code?
Nothing -- it's a *server side* error.
I'm not sure whether unsafeHeaderParsing really allows all rubbish to be accepted as HTTP. I'd rather try to get the server side fixed.
Cheers,
--
Joerg Jooss
news-reply@xxxxxxxxxxxxx
.
- Follow-Ups:
- Re: Please help! HTTP protocol violation error using HttpWebRequest
- From: PiotrKolodziej
- Re: Please help! HTTP protocol violation error using HttpWebRequest
- Prev by Date: Re: GetProperties and Property Order
- Next by Date: Convert MFC Fonts to c# Fonts
- Previous by thread: Re: Please help! HTTP protocol violation error using HttpWebRequest
- Next by thread: Re: Please help! HTTP protocol violation error using HttpWebRequest
- Index(es):
Relevant Pages
|