< Previous | Contents | Next >

Request headers

The table below describes the headers you can use in a request to create a folder.


Request header

Description

Required

Authorization

See “AWS authentication” on page 48.

Yes

Content-Length

Specifies the size, in bytes, of the data being stored. In a request to create a folder, the value of this header should be 0 (zero).


Even if you specify a value greater than zero for this header, no request body is sent to HCP.

Yes

Date

See “Common request headers” on page 55.

Date or

x-amz-date

Content-Type

Specifies the Internet media type of the request body. The only valid value is x-directory.


This header is ignored if the folder name in the request ends with a forward slash (/) or the percent-encoded equivalent (%2F). Otherwise, this header is required.

No

Host

See “Common request headers” on page 55.

Yes

Transfer-Encoding

Specifies the encoding transformation for the request body. The only valid value is chunked.


Even if you include this header in the request, no request body is sent to HCP.

No

x-amz-date

See “Common request headers” on page 55.

x-amz-date or Date


134 Chapter 6: Working with objects

Creating a folder