Common Headers

Last update:2022-03-01 18:22:26

Common Request Header

HeaderDescription
AuthorizationThe requested identity verification is used to verify the legitimacy of the requester's identity. Anonymous requests do not need to be carried.

Type: String

Default value: None
Content-LengthThe length of the message (not including the message header) defined in RFC 2616. All PUT operations must be carried.

Type: String

Default value: None
Content-TypeThe type of resource content, for example: text/plain.

Type: String

Default value: None
Content-MD5The 128-bit MD5 digest of the message (not including the message header) needs to be Base64 encoded.

Type: String

Default value: None
DateThe current date and time of the request originator.

When Authorization is included in the request, the header Date or x-wos-date must be defined in the request.

Type: String

Default value: None
HostIndicates the host address.

Type: String

Default value: None
ExpectWhen your request uses 100-continue, the client will not send the request message body until it receives the confirmation from the server. If the request is rejected, the request message body will not be sent.

Valid value: 100-continue
x-wos-dateThe current date and time of the request originator.

When Authorization is included in the request, the header Date or x-wos-date must be defined in the request. If the header Date and x-wos-date are defined at the same time in the request, the header x-wos-date is the main one.

Type: String

Recognized value: None

Common Response Header

NameDescription
AuthorizationThe requested identity verification is used to verify the legitimacy of the requester's identity. Anonymous requests do not need to be carried.

Type: String

Default value: None
Content-LengthThe length of the message (not including the message header) defined in RFC 2616. All PUT operations must be carried.

Type: String

Default value: None
Content-TypeThe type of resource content, for example: text/plain.

Type: String

Default value: None
Content-MD5The 128-bit MD5 digest of the message (not including the message header) needs to be Base64 encoded.

Type: String

Default value: None
DateThe current date and time of the request originator.

When Authorization is included in the request, the header Date or x-wos-date must be defined in the request.

Type: String

Default value: None
HostIndicates the host address.

Type: String

Default value: None
ExpectWhen your request uses 100-continue, the client will not send the request message body until it receives the confirmation from the server. If the request is rejected, the request message body will not be sent.

Valid value: 100-continue
x-wos-dateThe current date and time of the request originator.

When Authorization is included in the request, the header Date or x-wos-date must be defined in the request. If the header Date and x-wos-date are defined at the same time in the request, the header x-wos-date is the main one.

Type: String

Default value: None
x-wos-request-idCreated by WOS, the value that uniquely identifies this request, and the problem can be located through this value.

Type: String

Default value: None
Access-Control-Allow-OriginWhen the bucket where the object is located is configured with CORS rules, if the requested Origin meets the specified CORS rules, this Origin will be included in the response.

Type: String
Access-Control-Allow-MethodsWhen the bucket where the object is located is configured with CORS rules, if the requested Access-Control-Request-Method meets the specified CORS rules, the allowed Methods will be included in the response.

Type: String
Access-Control-Max-AgeWhen the bucket where the object is located is configured with CORS rules, if the request meets the CORS rules configured by the bucket, MaxAgeSeconds will be included in the response.

Type: Integer
Access-Control-Allow-HeadersWhen the bucket where the object is located is configured with CORS rules, these headers will be included in the response if the request meets the specified CORS rules.

Type: String
Access-Control-Expose-HeadersIndicates a list of headers that allow access to client-side JavaScript programs. When the bucket where the object is located is configured with CORS rules, if the request meets the specified CORS rules, the ExposeHeader will be included in the response.

Type: String
Is the content of this document helpful to you?
Yes
I have suggestion
Submitted successfully! Thank you very much for your feedback, we will continue to strive to do better!