Skip to content

Instantly share code, notes, and snippets.

Created June 12, 2015 07:17
Show Gist options
  • Save anonymous/7f464b355dace9da72ca to your computer and use it in GitHub Desktop.
Save anonymous/7f464b355dace9da72ca to your computer and use it in GitHub Desktop.
Request and Response from azure storage api calls
REQUEST:
100.114.158.124.55574-040.112.152.024.00080: GET /teststorage-cont?prefix=&restype=container&comp=list HTTP/1.1
Host: teststorage.blob.core.windows.net
Accept-Encoding: identity
x-ms-version: 2014-02-14
x-ms-date: Fri, 12 Jun 2015 07:02:23 GMT
Content-Type: application/octet-stream Charset=UTF-8
Authorization: SharedKey teststorage:iHXljIRSgSU+UmTBLMGbA9HajWZ5RFFs3RubKdsDHDE=
User-Agent: pyazure/0.11.0
RESPONSE:
040.112.152.024.00080-100.114.158.124.55574: HTTP/1.1 403 Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
Content-Length: 737
Content-Type: application/xml
Server: Microsoft-HTTPAPI/2.0
x-ms-request-id: 9bd88eec-0001-0001-76dd-a410e0000000
Date: Fri, 12 Jun 2015 07:02:23 GMT
<?xml version="1.0" encoding="utf-8"?><Error><Code>AuthenticationFailed</Code><Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
RequestId:9bd88eec-0001-0001-76dd-a410e0000000
Time:2015-06-12T07:02:24.0258041Z</Message><AuthenticationErrorDetail>The MAC signature found in the HTTP request 'iHXljIRSgSU+UmTBLMGbA9HajWZ5RFFs3RubKdsDHDE=' is not the same as any computed signature. Server used following string to sign: 'GET
application/octet-stream Charset=UTF-8
x-ms-date:Fri, 12 Jun 2015 07:02:23 GMT
x-ms-version:2014-02-14
/teststorage/teststorage-cont
comp:list
prefix:
restype:container'.</AuthenticationErrorDetail></Error>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment