Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #71570

Re: httplib with NETRC authentication

References <a432c9a5-ac1e-4e83-8fb8-010e107846b3@googlegroups.com> <CAPTjJmrF1YF_KHiNm_UjqMbaysGu9vRyEJOW9j_QhKzyBA69MA@mail.gmail.com> <8738gcgybj.fsf@gmail.com>
Date 2014-05-15 03:03 +1000
Subject Re: httplib with NETRC authentication
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.10015.1400086998.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Thu, May 15, 2014 at 1:44 AM, Akira Li <4kir4.1i@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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

httplib with NETRC authentication pratibha natani <en.pratibha@gmail.com> - 2014-05-13 16:33 -0700
  Re: httplib with NETRC authentication Chris Angelico <rosuav@gmail.com> - 2014-05-14 10:11 +1000
  Re: httplib with NETRC authentication Akira Li <4kir4.1i@gmail.com> - 2014-05-14 19:44 +0400
  Re: httplib with NETRC authentication Akira Li <4kir4.1i@gmail.com> - 2014-05-14 20:47 +0400
  Re: httplib with NETRC authentication Chris Angelico <rosuav@gmail.com> - 2014-05-15 03:03 +1000

csiph-web