httplib with NETRC authentication

Chris Angelico rosuav at gmail.com
Wed May 14 13:03:10 EDT 2014


On Thu, May 15, 2014 at 1:44 AM, Akira Li <4kir4.1i at gmail.com> wrote:
>> The obvious question is: What *does* work? Does it work when you use
>> wget, or some other application? Then go and look at what that sends
>> for its authentication headers. Tip: It won't be "Authorization".
>
> "Authorization" is the appropriate header for basic http authentication:
> http://tools.ietf.org/html/rfc2617#section-2

*facepalm* Critical reading failure on my part. He did have it right
in the first place. Still, I stand by the original statement and (more
importantly) the original question. It's just the tip that's wrong.

ChrisA



More information about the Python-list mailing list