Re: Please help! HTTP protocol violation error using HttpWebRequest

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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


.



Relevant Pages

  • RE: [fw-wiz] Log checking?
    ... Spikes in things like IRC, HTTP to funny ports, ... I would agree that logging denied inbound is good for nothing but wasting ...
    (Firewall-Wizards)
  • 500 Internal Server Error
    ... When logging into RWW or OWA I was getting HTTP 404 - File not found.Now I ...
    (microsoft.public.windows.server.sbs)
  • Re: Security
    ... Jasen Betts wrote: ... uses the services, and logs out. ... After logging out, if the user click ... is merely HTTP over SSL/TLS. ...
    (comp.lang.javascript)
  • Re: Security
    ... uses the services, and logs out. ... After logging out, if the user click ... is merely HTTP over SSL/TLS. ... login form and a server based session. ...
    (comp.lang.javascript)
  • Re: Where can you get these?
    ... don't forget the logging uses of these. ... scenes need is sheaves for the rigging. ... http: slash /nav.to slash bobmay ... http: slash /bobmay dot astronomy.net ...
    (rec.models.railroad)