httplib/socket problems reading 404 Not Found response

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Mar 13 04:46:31 CET 2007


En Tue, 13 Mar 2007 00:07:55 -0300, Patrick Altman <paltman at gmail.com>  
escribió:

> 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
> trace.py and it hangs here:

Yes, it's a known problem. See this message with a self-response:
http://mail.python.org/pipermail/python-list/2006-March/375087.html

-- 
Gabriel Genellina




More information about the Python-list mailing list