Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2023 Intertech Services AG
Yandex Object Storage
  • Getting started
  • Log reference
  • Access management
  • Questions and answers
  1. API reference
  2. REST (Amazon S3-compatible)
  3. REST
  4. Common request headers

Common request headers

Written by
Yandex Cloud
Header Description
Authorization Any request to Yandex Object Storage must be authorized.

This header must be used with either the Date or X-Amz-Date header.

Learn about authorization methods in the corresponding sections of the guide.
Cache-Control A set of directives for caching data according to RFC 2616.
Content-Disposition The name Object Storage suggests saving an object as a file under when it's downloaded. Compliant with RFC 2616.
Content-Encoding Defines the content encoding according to RFC 2616.
Content-Length Length of the request body (without headers) in compliance with RFC 2616.

This header is required for all requests that send to Object Storage any data, for example, when uploading an object.
Content-Type Data type in a request. For example, text/html. For more information about data types, see the Media type Wikipedia article.

The default type is binary/octet-stream.
Content-MD5 128-bit MD5 hash value of the request body, base64 encoded.

Compliant with RFC 1864.

Object Storage uses a header to make sure the sent data matches the received data.

If the bucket uses default locks of object versions, the Content-MD5 header is required for uploading or copying an object version.
Date The date and time a request is sent.

Format: Thu, 18 Jan 2018 09:57:35 GMT.

When X-Amz-Date is set, Object Storage ignores the Date header.
Expect Expected 100-continue code.

When uploading data to Object Storage, an app can use the following logic:
- Send a request without a body, but with the Expect: 100-continue header set.
- Send a request with a body after getting the 100-continue response. This request must not have the Expect header.
Expires Response expiration date. Compliant with RFC 2616.
Host Request recipient host.

This header is required for HTTP/1.1, but optional for HTTP/1.0 requests.
X-Amz-Date The date and time at the request source.

Format: 20211102T145822Z.

When X-Amz-Date is set, Object Storage ignores the Date header.

If a cross-domain (CORS) request is sent, it may contain headers of the options preflight request.

Was the article helpful?

Yandex project
© 2023 Intertech Services AG