Community news, upcoming events and general discussions
Threads: 36 Posts: 88
Get technical support from the community
Threads: 1427 Posts: 7608
Threads: 18 Posts: 64
Tell us how to make XDK better!
Threads: 36 Posts: 119
Share and discuss community member projects
Threads: 81 Posts: 350
Can I add in the ''API key'' and ''Field1=1'' as shown in the code below?
* POST_REQUEST_CUSTOM_HEADER_0 is a custom header which is sent along with the
* POST request. It's meant to demonstrate how to use custom header.
#define POST_REQUEST_CUSTOM_HEADER_0 "H2XL7UF32O1T2V3Y"
* POST_REQUEST_CUSTOM_HEADER_1 is a custom header which is sent along with the
#define POST_REQUEST_CUSTOM_HEADER_1 "field1=1"
Hi l Kent,
In HTTP payload format, custom headers carry additonal information. You can use POST_REQUEST_CUSTOM_HEADER_0 only for passing the API key( with prefix "X-AuthToken: "). Consider generating authentication token for your API key as mentioned in article https://docs.openstack.org/zaqar/latest/user/authentication_tokens.html.