Common parameters
This topic describes the common request parameters in an HTTP request header and the common response parameters in an HTTP response header for ApsaraMQ for RocketMQ.
Common request header
Parameter | Required | Description |
Authorization | Yes | The authorization string. Specify the value in the following format: |
Content-Length | Yes | The length of the HTTP request body. |
Content-Type | Yes | The Multipurpose Internet Mail Extensions (MIME) type of the request body. Set the value to text/xml; charset=utf-8. This value sets the MIME type to XML and the character encoding method to UTF-8. |
Date | Yes | The time when the request is constructed. The time must be in UTC. If the interval between the time when the request is constructed and the time when the request is received exceeds 15 minutes, the ApsaraMQ for RocketMQ broker determines that the request is invalid. |
Host | Yes | The HTTP endpoint that you obtain on the Instances page of the console. |
x-mq-version | Yes | The version of the ApsaraMQ for RocketMQ API. Set the value to 2015-06-06. |
Content-MD5 | No | The MD5 hash value of the message body. For more information, see Content-MD5 Header Field. |
Common response header
Parameter | Description |
Content-Length | The length of the HTTP response body. |
Connection | The status of the HTTP connection. |
Date | The time when the response was returned. The time is displayed in UTC. |
x-mq-request-id | The ID of the request. |
x-mq-version | The version of the ApsaraMQ for RocketMQ API. The value is 2015-06-06. |