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: Morten Kjærulff via curl-users <curl-users_at_cool.haxx.se>
Date: Tue, 25 May 2021 12:51:42 +0200

On Mon, May 24, 2021 at 11:32 AM Daniel Stenberg <daniel_at_haxx.se> wrote:

> It will be opened and read once per connection, so I presume your auth use
> there forces curl to create more than one connection to perform the transfer.

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.

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

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