30.07.2012 Views

Reference Guide

Reference Guide

Reference Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Zend Server <strong>Reference</strong> Manual<br />

Calculating the Request Signature<br />

The request signature is a 64 digit long hexadecimal number with digits a-f in lower case, calculated using<br />

the following method:<br />

340<br />

1. Concatenate the following values in order, separated by a colon (:), into a single string:<br />

a. The exact value of the Host HTTP header. In most cases this will be a string in the form<br />

":". In some cases the colon and port are omitted. In any case, if the port is<br />

included in the Host header sent in the request, it must be included in the generated<br />

string.<br />

b. The Request URI, which is the path part of the full request URL, without the query string<br />

or host name.<br />

c. The exact value of the User-Agent request header.<br />

d. The exact value of the Date request header.<br />

2. Hash the generated string with the HMAC/SHA-256 function using the secret API key to obtain<br />

the request signature.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!