I need to be able to either set in my httpie/config.json file to include some default headers (these are custom headers and not normal ones) to every request that i send from httpie by default (ALWAYS)
ie: headers examples
http "http://poopskiesuprise.com" 'CUSTOM_HEADER:asdf' 'HEADER_TWO:asdf'
always include the 'CUSTOM_HEADER' and 'HEADER_TWO' to every request so i can just do this
http "http://poopskiesuprise.com"
i did not see a good way to do this in the documentation so any help would be great!
The easiest solution is creating a session with desired headers, and using it on your
config.json:Create a session (for your desired host):
and then add this to your config (
~/.config/httpie/config.jsonon POSIX):and then from now on, every request will add those two headers:
Unless you unset them: