During testing of a new application I found that HEAD requests fail
for an object (a small image). A GET request works fine for the same
object via browser.
I'm doing the HEAD request via 'curl --head url-to-object'
I'm using the jets3t library to put the objects to S3.
This is the 403 response I'm getting via curl:
jackal:~ shane$ curl --head
http://mybucketname.s3.amazonaws.com/7NhwEeNc/images/2_xnFa4689gXqC.jpg?AWSAccessKeyId=myaccesskeyid&Expires=1216749099&Signature=3sWDjMYHRW3nzTH%2FqXdJW00lO%2Bo%3D
[1] 17092
[2] 17093
jackal:~ shane$ HTTP/1.1 403 Forbidden
x-amz-request-id: 925B24B7FD98EC22
x-amz-id-2:
Fp8oShq6L7Zn18G4TtVkDt1TixSHrx01f3jLfe0NL9PMQa5IISLS6aCF6D7ZR3tQ
Content-Type: application/xml
Transfer-Encoding: chunked
Date: Wed, 09 Jul 2008 23:22:00 GMT
Server: AmazonS3
Does anyone have any idea why the GET request is giving a 403?