httplib/socket problems reading 404 Not Found response

Gabriel Genellina gagsl-py2 at
Tue Mar 13 04:46:31 CET 2007

En Tue, 13 Mar 2007 00:07:55 -0300, Patrick Altman <paltman at>  

> I am attempting to use a HEAD request against Amazon S3 to check
> whether a file exists or not and if it does parse the md5 hash from
> the ETag in the response to verify the contents of the file so as to
> save on bandwidth of uploading files when it is not necessary.
> The problem lies when I attempt to send a HEAD request when no file
> exists.   As expected, a 404 Not Found response is sent back from
> Amazon however, my test scripts seem to hang.  I run python with
> and it hangs here:

Yes, it's a known problem. See this message with a self-response:

Gabriel Genellina

More information about the Python-list mailing list