curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Read ~/.netrc only once

From: Daniel Stenberg via curl-users <curl-users_at_cool.haxx.se>
Date: Tue, 25 May 2021 17:40:56 +0200 (CEST)

On Tue, 25 May 2021, Morten Kjærulff via curl-users wrote:

> This seems to work:
>
> mkfifo tmppip
> while true ; do cat .netrc > tmppip ; done &
> curl -n --anyauth --netrc-file tmppip http://mysite/...
>
> But it seems a bit stupid.

You could also provide the credentials using other means than netrc!

> Put it on the wishlist that I wish curl would read .netrc only once per
> invocation.

Yeps, the TODO list was getting a little thin... =)

-- 
  / daniel.haxx.se
  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
  | https://www.wolfssl.com/contact/


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