Created
June 9, 2012 23:11
-
-
Save NetworksAreMadeOfString/2902966 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Headers.add(new BasicNameValuePair("Accept","application/json")); | |
Headers.add(new BasicNameValuePair("Content-Type","application/json")); | |
Headers.add(new BasicNameValuePair("X-Ops-Sign","version=1.0")); | |
Headers.add(new BasicNameValuePair("X-Ops-Userid",this.ClientName)); | |
Headers.add(new BasicNameValuePair("X-Ops-Timestamp",TimeStamp)); | |
Headers.add(new BasicNameValuePair("X-Ops-Content-Hash",Disgesteriser.hash_string(Body))); | |
signed_canonicalize_request = SignHeaders("Method:GET"+ | |
"\nHashed Path:" + Disgesteriser.hash_string(Path) + | |
"\nX-Ops-Content-Hash:"+Disgesteriser.hash_string(Body)+ | |
"\nX-Ops-Timestamp:"+TimeStamp+ | |
"\nX-Ops-UserId:"+this.ClientName); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment