3 ms·
Is there an easy way to set a ‘sticky’ curl header, or change/set the default headers? I did a quick search and couldn’t see any docs on this use case.
by RileyJames 4y ago
Is there an easy way to set a ‘sticky’ curl header, or change/set the default headers?
I did a quick search and couldn’t see any docs on this use case.
- mdaniel 4y agoBehold the power of curlrc: https://curl.se/docs/manpage.html#-K https://curl.se/docs/manpage.html#-K And it behaves the same way as `curl --header "" --header ""` in that it's additive: $ curl -vK <(printf 'header = "alpha: 1"\nheader = "beta: 2"\n') httpbin.org/get