question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to use auth info from .netrc is not clear

See original GitHub issue

The 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:closed
  • Created 10 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

13reactions
jakubroztocilcommented, Apr 10, 2013

Actually, you can run $ python -m netrc to see how your ~/.netrc is understood by he netrc module from Python’s standard library.

0reactions
jclemcommented, Aug 14, 2013

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found