You use the HTTP Authorization request header to provide the authentication token for a request. The value of this header is HCP followed by the authentication token, in this format:
Authorization: HCP authentication-token
For example, here’s the Authorization header for a user named myuser and password p2Ss#0rd:
Authorization: HCP bXl1c2Vy:6ecaf581f6879c9a14ca6b76ff2a6b15
Specifying the Authorization header with cURL
With cURL, you use the -H option to specify a header, like this:
curl -H "Authorization: HCP bXl1c2Vy:6ecaf581f6879c9a14ca6b76ff2a6b15"
Specifying the Authorization header in Python with PycURL
In Python with PycURL, you use the HTTPHEADER option to specify a header, as in this example:
curl.setopt(pycurl.HTTPHEADER, ["Authorization: HCP
bXl1c2Vy:6ecaf581f6879c9a14ca6b76ff2a6b15"])
© 2016 Hitachi Data Systems Corporation. All rights reserved.