On Jun 27, 2008, at 12:29 PM, Klein, Michael wrote:

Amazon.com doesn't seem to allow HEAD requests -- it returns a 405 METHOD
NOT ALLOWED status

Bummer, yes, but Jonathan, thanks for that Terry Reese HEAD-tip, very cool.

BTW, for you pythonistas, I'm used to urllib/urllib2 & it took me a little longer than expected to find how to do a HEAD-request:

>>> import httplib
>>> c = httplib.HTTPConnection( 'www.amazon.com' )
>>> c.request('HEAD', '/gp/reader/0060589469' )
>>> r = c.getresponse()

Jonathan, I've done exactly the same as you; screen-scraping the GET response text.

---
Birkin James Diana
Programmer, Integrated Technology Services
Brown University Library
[EMAIL PROTECTED]

Reply via email to