Community news, upcoming events and general discussions
Threads: 34 Posts: 86
Get technical support from the community
Threads: 1352 Posts: 7332
Threads: 18 Posts: 64
Tell us how to make XDK better!
Threads: 35 Posts: 117
Share and discuss community member projects
Threads: 76 Posts: 337
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.