Re: HttpWebRequest throws exception, but HaveResponse is true?
From: Shell (shelld00d_at_yahoo.com)
Date: 10/07/04
- Next message: Paul Say: "StreamReader - Losing Lines from File."
- Previous message: Marc Scheuner [MVP ADSI]: "Re: Visual C# program without .NET - possible?"
- In reply to: Jon Skeet [C# MVP]: "Re: HttpWebRequest throws exception, but HaveResponse is true?"
- Next in thread: Wessel: "Re: HttpWebRequest throws exception, but HaveResponse is true?"
- Reply: Wessel: "Re: HttpWebRequest throws exception, but HaveResponse is true?"
- Messages sorted by: [ date ] [ thread ]
Date: 7 Oct 2004 00:28:15 -0700
Interesting idea, but it doesn't seem to work.
e.Response is null, but request.HaveResponse is still true! For the
moment, I've gotten it to work and show the right "Chart not available"
message by setting useUnsafeHeaderParsing = true in the app.config
file. It's a hack, and I'm not sure what implications it will have, but
it seems to be the only thing that works. I read somewhere that this is
supposed to work only on .net 1.1 sp1.
I checked the headers being returned, and sure enough, there's an ugly
"HTTP/1.1 200 OK" that's causing this problem.
- Next message: Paul Say: "StreamReader - Losing Lines from File."
- Previous message: Marc Scheuner [MVP ADSI]: "Re: Visual C# program without .NET - possible?"
- In reply to: Jon Skeet [C# MVP]: "Re: HttpWebRequest throws exception, but HaveResponse is true?"
- Next in thread: Wessel: "Re: HttpWebRequest throws exception, but HaveResponse is true?"
- Reply: Wessel: "Re: HttpWebRequest throws exception, but HaveResponse is true?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|