HEAD Object
From Hostway API Documentation
				
								
				Revision as of 13:36, 30 May 2016 by Corinne.chui  (Talk | contribs)
				
			retrieves metadata from an object without returning the object itself
HEAD /ObjectName
Requests
- Syntax
 
HEAD /ObjectName HTTP/1.1 Host: BucketName.hs2.hostway.com Date: date Authorization: signatureValue
- Parameters
 
This implementation of the operation does not use request parameters.
- Headers
 
- Range: Downloads the specified range bytes of an object.
 - If-Modified-Since: Return the object only if it has been modified since the specified time
 - If-Unmodified-Since: Return the object only if it has not been modified since the specified time
 - If-Match: Return the object only if its entity tag (ETag) is the same as the one specified
 - If-None-Match: Return the object only if its entity tag (ETag) is different from the one specified
 - x-amz-request-payer: the requester knows he or she will be charged for the download
 
- Elements in body
 
This implementation of the operation does not use request elements.
Responses
- Headers
 
- x-amz-meta-* headers
 
- Elements
 
This implementation of the operation does not return response elements.
Examples
- Sample Request
 
HEAD /ObjectName HTTP/1.1 Host: BucketName.hs2.hostway.com Date: date Authorization: AWS signatureValue
- Sample Response
 
HTTP/1.1 200 OK Date : date Connection : keep-alive Content-Type: binary/octet-stream Content-Length : 0