0002-00000039

更新时间:
复制 MD 格式

Issue description

A single request cannot include a signature in both the request header and the URL parameters.

Cause

This error occurs because you sent a signed request that includes the Authorization request header and also includes signature authentication parameters, such as Expires, Signature, and OSSAccessKeyId, in the URL.

Example problem

You provided the signature for the authentication request in both the header and the URL request parameters.

GET /oss.jpg?OSSAccessKeyId=nz2pc56s936****&Expires=1141889120&Signature=vjbyPxybdZaNmGa%2ByT272YEAiv**** HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 24 Feb 2012 06:38:30 GMT
Authorization: OSS qn6q**************:77Dv****************

Solution

Choose one of the following methods to send a signed request.

  • Include the signature in the header

GET /oss.jpg HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 24 Feb 2012 06:38:30 GMT
Authorization: OSS qn6q**************:77Dv****************

For more information, see Include a signature in the header.

  • Include the signature in the URL

GET /oss.jpg?OSSAccessKeyId=nz2pc56s936****&Expires=1141889120&Signature=vjbyPxybdZaNmGa%2ByT272YEAiv****
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 24 Feb 2012 06:38:30 GMT

For more information, see Include a signature in the URL.