PUT 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
adds an object to a bucket
PUT /ObjectName
Requests
- Syntax
PUT /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
- Content-Type: A standard MIME type describing the format of the contents
- Content-Disposition: Specifies presentational information for the object.
- Content-Length: The size of the object, in bytes
- x-amz-acl: The canned ACL to apply to the object.
- x-amz-meta-*: Any header starting with this prefix is considered user metadata.
Responses
- Headers
- ETag
- Elements
This implementation of the operation does not return response elements.
Examples
- Sample Request
PUT /ObjectName HTTP/1.1 Host: BucketName.hs2.hostway.com Date: date Authorization: AWS signatureValue Content-Type: text/plain Content-Length: length
ObjectContent
- Sample Response
HTTP/1.1 200 OK Date : date Connection : keep-alive Content-Length : length ETag: "etag"