Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

del

  • Loading branch information...
commit a380053b4161a01b3691efe0cc3b7877bd7d4a4d 1 parent f5857f7
Dell authored
Showing with 0 additions and 40 deletions.
  1. +0 −40 WebConsole.md
View
40 WebConsole.md
@@ -1,40 +0,0 @@
-###签名Api
-+ 数据格式
------------------------------------------
- In [28]: data={'payload':{}}
-
- In [29]: data['payload']['url'] = '/haibo/'
-
- In [30]: data['payload']['secretkey'] = 'A367481FC5752C7805248C5AEDCD1484'
-
- In [31]: data['payload']['Date'] = '201204241035'
-
- In [32]: data['payload']['Htto-Verb'] = 'GET'
-
- In [33]: data['payload']['Http-Verb'] = 'GET'
-
- In [34]: data['payload']['Content-Type'] = ''
-
- In [35]: data['payload']['Content-MD5'] = ''
-
- In [39]: data
- Out[39]:
- {'payload': {'Content-MD5': '',
- 'Content-Type': '',
- 'Date': '201204241035',
- 'Htto-Verb': 'GET',
- 'Http-Verb': 'GET',
- 'secretkey': 'A367481FC5752C7805248C5AEDCD1484',
- 'url': '/haibo/'}}
-
- In [40]:
-
- In [105]: print requests.post('http://10.11.50.187:9999/web/sign/',data={'payload':json.dumps({'headers':data['payload']})}).content
- {"signature": "a7OyytGJnirO5KZxDFmUBNm7hME="}
-
- In [106]: print requests.get('http://10.11.50.187:9999/web/sign/',params={'payload':json.dumps({'headers':data['payload']})}).content
- {"signature": "a7OyytGJnirO5KZxDFmUBNm7hME="}
------------------------------------------
-
-
-
Please sign in to comment.
Something went wrong with that request. Please try again.