curl / Mailing Lists / curl-users / Single Mail

curl-users

Re: Suggestion: -H from a file... (curl: curl-users@cool.haxx.se exclusive)

From: Kamil Dudka via curl-users <curl-users_at_cool.haxx.se>
Date: Tue, 16 May 2017 10:53:31 +0200

On Tuesday, May 16, 2017 10:38:23 Daniel Stenberg wrote:
> On Tue, 16 May 2017, Kamil Dudka via curl-users wrote:
> > I do not believe it would help either. As long as the curl tool gets the
> > "secret" headers by a command-line argument, which is the only choice at
> > the moment, it is observable from outside while curl is running.
>
> It could probably be done by a script or something that pipes the secret
> header as a -H command line option on stdout that gets read with curl's
> --config / -K, similar to this:
>
> $ ./generate_secret.sh | curl -K- http://example.com/

Indeed. I did not realize that 'curl --config' can read any command-line
option from the standard input (or a file). Then it really has a solid
workaround...

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