curl / Mailing Lists / curl-users / Single Mail

curl-users

Re: Suggestion: -H from a file...

From: Nick Chambers <nchambers_at_lightspeedsystems.com>
Date: Mon, 15 May 2017 13:55:29 +0000

On 5/15/17, 8:03 AM, "curl-users on behalf of Daniel Stenberg"
<curl-users-bounces_at_cool.haxx.se on behalf of daniel_at_haxx.se> wrote:

>On Mon, 15 May 2017, Timothe Litt wrote:
>
>> Suggestion: add a way to specify -H from a file, perhaps -H @filespec
>>as is
>> provided for -d & friends?
>
>I like this idea!
>
>--
>
> / daniel.haxx.se
>-----------------------------------------------------------
>Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
>Etiquette: https://curl.haxx.se/mail/etiquette.html

In the meantime, you can do something like `curl -H "$(cat
.secret_auth_token)" ...` or something like that. It's not a cURL
solution, but provides a workaround until your idea can be implemented.

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-05-15