2016-10-22 52 views

回答

1

這裏是我的要求我的一個原始消息頭的例子:

Host: mobileanalytics.us-east-1.amazonaws.com 
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Firefox/45.0 
Accept: application/hal+json 
Accept-Language: en-US,en;q=0.5 
Accept-Encoding: gzip, deflate 
X-Amz-Date: 20161024T192952Z 
X-Amz-Security-Token: INSERT_SECURITY_TOKEN 
Authorization: AWS4-HMAC-SHA256 Credential=INSERT_CREDENTIAL/20161024/us-east-1/mobileanalytics/aws4_request, SignedHeaders=accept;host;x-amz-date;x-amz-security-token, Signature=INSERT_SIGNATURE 
Connection: keep-alive 

一定要包括Accept頭:

Accept: application/hal+json 
+0

謝謝您的回答。請考慮將標題作爲文本/代碼發佈,因爲以這種方式重複使用/搜索它們會更容易。 – Ivan

+0

以文本更新 –