Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Amazon S3, what permissions do I need to get HEAD on an object?

I'm trying to get HEAD on an object, and I'm getting 403 forbidden. What permissions do I need to, in order to get HEAD on the object, using the REST API?

I have the code in place to get the full object contents using a signed URL... but when I switch to get HEAD instead of getting the full object, it gives me the 403 forbidden

like image 780
Derick Bailey Avatar asked Dec 14 '13 05:12

Derick Bailey


1 Answers

It's the same permission as for GET. If you can get an object, you can do a HEAD request on it. But you can't use the same signed URL for HEAD and GET because the request method is used to compute the signature, so they will have different signatures. Create a new signed URL for the HEAD request and it should work.

like image 159
Charles Engelke Avatar answered Sep 20 '22 19:09

Charles Engelke