Hacker News new | ask | show | jobs
by vesinisa 1651 days ago
curl -H/--header itself also takes a file name prefixed by @, including - for stdin. So you could go curl -H@- <<<'API-Key: Foobar', or if you need to specify multiple sensitive headers, curl -H@<(echo API-Key: Foo) -H@<(echo Pre-Shared: Bar)
1 comments

<() is a bash extension and won't work in another `sh` like dash.