How to use auth info from .netrc is not clear
See original GitHub issueThe README says “Authorization information from .netrc
is honored as well”, but it’s not clear how this is done. The README should be updated to explain this. I’d submit a PR, but I still can’t figure it out. Not quite as easy as curl -n
.
Issue Analytics
- State:
- Created 10 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
How to use auth info from .netrc is not clear · Issue #139 - GitHub
The README says "Authorization information from .netrc is honored as well", but it's not clear how this is done.
Read more >.netrc - Everything curl
netrc file you really should make sure the file is not readable by anyone besides the user. You cannot use a space when...
Read more >Git - How to use .netrc file on Windows to save user and ...
A new read-only credential helper (in contrib/ ) to interact with the . netrc/. authinfo files has been added. That script would allow...
Read more >.netrc - HTTPie 3.2.1 (latest) docs
Authentication information from your ~/.netrc file is by default honored as well. For example. This can be disabled with the --ignore-netrc option.
Read more >Do you use curl? Stop using -u. Please use curl -n and .netrc
Option 1: use curl -n. If you have OSX or Linux, create a ~/.netrc file and insert your creds there, and use curl...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Actually, you can run
$ python -m netrc
to see how your~/.netrc
is understood by henetrc
module from Python’s standard library.Just to follow up, I had no value next to one of the
login
fields in my.netrc
that seemed only to bother Python.curl
for some reason did not have a problem with it.