GET Object
From Hostway API Documentation
(Difference between revisions)
Mike.robski (Talk | contribs) |
Corinne.chui (Talk | contribs) m (1 revision) |
Latest revision as of 13:36, 30 May 2016
retrieves objects
GET /ObjectName
[edit] Requests
- Syntax
GET /ObjectName HTTP/1.1 Host: BucketName.hs2.hostway.com Date: date Authorization: signatureValue Range:bytes=byte_range
- 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.
[edit] Responses
- Headers
- x-amz-meta-* headers
- Elements
This implementation of the operation does not return response elements.
[edit] Examples
- Sample Request
GET /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-Length : length ETag: "etag"
ObjectContent
- Sample Request
GET /ObjectName HTTP/1.1 Host: BucketName.hs2.hostway.com Date: date Authorization: AWS signatureValue Range: bytes=3-6
- Sample Response
HTTP/1.1 200 OK Date : date Connection : keep-alive Content-Length : length ETag: "etag" Content-Range : bytes 3-6/14