Adding headers

Headers are used to define an access key, to specify your requests content type or acceptable response content types. Unlike parameters, HTTP headers are not part of the address url.
The HttpClient automatically sends some headers. The response from httpbin echoes back the sent headers:
Image

You may define your own headers or override the defaults.


Perform the following steps:
  1. Expand HttpClient, right-click Headers and click Actions > Add
    The Add window opens.
    Image
  2. Start typing a header Slot Name.
    A drop-down list opens with credentials, headers and methods.
  3. Select a header and click OK.
    The HttpClient adds the header under the Headers folder.
    Image
  4. Manually enter a value or link to a slot elsewhere in the station to supply the value.
  5. Right-click HttpClient and click Actions > Send.
    The header has been overwritten.
    Image

    If Inherit is set to Inherit, the driver merges the header values defined within parent components, such as the HttpClientFolder, with the child component headers.