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


Groups > comp.lang.python > #71570

Re: httplib with NETRC authentication

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.024
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'http': 0.09; 'subject:skip:a 10': 0.09; 'cc:addr:python-list': 0.11; 'question.': 0.14; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'headers.': 0.16; 'appropriate': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'cc:addr:python.org': 0.22; 'sends': 0.24; 'header': 0.24; 'question': 0.24; 'cc:2**0': 0.24; '15,': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'statement': 0.30; 'message-id:@mail.gmail.com': 0.30; 'critical': 0.32; 'subject:with': 0.35; 'basic': 0.35; 'received:google.com': 0.35; 'url:org': 0.36; 'work?': 0.38; 'does': 0.39; 'first': 0.61; 'stand': 0.64; 'obvious': 0.74; 'application?': 0.84; 'to:none': 0.92
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=54mxOFigEsnX2a+Xi76SCUMG+QyC2ToaO+MZ320vyH0=; b=Qq2wnisIfP8ay+1344ncT2+iIEch51MfsO6O3j/U2pDzt8ZqojrtxI/il5TZB5txy2 rycApGUZ+bQnMGjQhqM5PzK3VEj6/DNLtN2V3aOCOjnmZeXRZx6Q+7s/SuPFyV0gqIAN qQyKUdYOOtiMioPZS1T7k8bvUTuicHpYlyRN5xgQd6Y6t09aLfG/KnRv3gqTjID6iseC zJQ/Hlze+BGOZizfyKXXzOMnsOmSsFptPiwKYYZe4MhMX3bgSChqsxqv/kdyl9c9IHkl mMif9KFj+wQ2W59zB4atpWq5Bog1PmzRZyruMx4EO6kC8GkzpvZr1hayJOk1eEkwCErF ct6g==
MIME-Version 1.0
X-Received by 10.221.36.73 with SMTP id sz9mr9513vcb.62.1400086990695; Wed, 14 May 2014 10:03:10 -0700 (PDT)
In-Reply-To <8738gcgybj.fsf@gmail.com>
References <a432c9a5-ac1e-4e83-8fb8-010e107846b3@googlegroups.com> <CAPTjJmrF1YF_KHiNm_UjqMbaysGu9vRyEJOW9j_QhKzyBA69MA@mail.gmail.com> <8738gcgybj.fsf@gmail.com>
Date Thu, 15 May 2014 03:03:10 +1000
Subject Re: httplib with NETRC authentication
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.10015.1400086998.18130.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1400086998 news.xs4all.nl 2894 [2001:888:2000:d::a6]:52843
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:71570

Show key headers only | 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