Re: "HTTP error -1" from urllib2

2007-04-14 Thread John Nagle
John J. Lee wrote: > John Nagle <[EMAIL PROTECTED]> writes: > Can you create an example (preferably small) that fails? Feel free to > email it to me if it includes something you don't want to post. It's not a Python problem, as it turns out. It's a problem in, surprisingly, Coyote Point loa

Re: "HTTP error -1" from urllib2

2007-04-14 Thread John Nagle
The crash is a known bug, and is fixed in the Subversion repository, but not in any released version. The problem is that if the server returns an blank line, instead of "HTTP 1", httplib goes off into some old HTTP 0.9 code that's broken. John Nagle John Nagl

Re: "HTTP error -1" from urllib2

2007-04-14 Thread John J. Lee
John Nagle <[EMAIL PROTECTED]> writes: > I'm getting a wierd error from urllib2 when opening certain > URLs. The code works for most sites, but not all of them. > Here's the traceback: [...] > InfoException: Problem with page "http://www.fourmilab.ch": HTTP error -1 - .. > > This fails ident

"HTTP error -1" from urllib2

2007-04-13 Thread John Nagle
I'm getting a wierd error from urllib2 when opening certain URLs. The code works for most sites, but not all of them. Here's the traceback: [Thread-2] InfoSitePage EXCEPTION while processing page "http://www.fourmilab.ch": Problem with page "http://www.fourmilab.ch": HTTP error -1 - .. Tra