This allows any arbitrary header to be set for a given request. As an example, many HTTP APIs, particularly commercial HTTP APIs, require opaque authentication tokens to be set in the headers, instead of the more familiar bearer tokens.
Added the following flag:
-H
--header
Must be in the text format key: value and can be specified multiple times to include multiple headers.
Example request:
$ hopp-cli get -H 'X-Api-Key: foobar' -H 'X-Api-Secret: super_secret' https://example.com/api/v1/accounts
This allows any arbitrary header to be set for a given request. As an example, many HTTP APIs, particularly commercial HTTP APIs, require opaque authentication tokens to be set in the headers, instead of the more familiar bearer tokens.
Added the following flag:
-H
--header
Must be in the text format
key: value
and can be specified multiple times to include multiple headers.Example request: