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


Groups > comp.lang.python > #60058

Re: HTTP Header Capitalization in urllib.request.AbstractHTTPHandler (Python 3.3)

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.034
X-Spam-Evidence '*H*': 0.93; '*S*': 0.00; 'languages.': 0.04; 'subject:Python': 0.06; 'chris,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:3.3': 0.16; 'tweak': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'typing': 0.19; 'source': 0.25; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'evil': 0.31; 'open': 0.33; 'received:google.com': 0.35; 'changing': 0.37; 'sometimes': 0.38; 'thank': 0.38; 'nov': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'even': 0.60; 'subject:skip:C 10': 0.61; 'love': 0.65; '20,': 0.68; '2013': 0.98
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:to :content-type; bh=558zRVc9nMbPuYJ010++BgH7SGEdcn5hCV6A8M6rYDY=; b=UHFtSlo35UwR8XLHF4fsU4fKaJVlmquCkSc5ha1AJ3onW1By8YZq2ULvrTgugndfMl IIhnbBZ8Ny7IthVbonEQcAYTuvOqcqpkFSP+vbtjELDXJagfp5qaJoxqti7jIGVFbyDj D7bLaeoRsASs054e1La/s+zUgl8JF48BLQQOuPzTu/CkITwcyV8NAZmQhKZfQwVKfcV0 JBKqPsj0SFPJvgSuHW9v2lM6FEQ0WD4JjMpV8usAn+JtbGRlywt79L0wBLspKNGmUF1U RB7YeLAu5+i4AL9hRa1Hh0ELUBjXnNAM7LmOx+bi+RodQiqV2sn+T5vj9biih0SJfOnI WXCA==
MIME-Version 1.0
X-Received by 10.66.171.13 with SMTP id aq13mr30468979pac.30.1384931148620; Tue, 19 Nov 2013 23:05:48 -0800 (PST)
In-Reply-To <528C1B1F.2020700@s1network.com>
References <CAPTjJmoZ854_A2gJCBvTJo_7pfgYJ2xD_f9HMauqqp3YWFo8WQ@mail.gmail.com> <528C1B1F.2020700@s1network.com>
Date Wed, 20 Nov 2013 18:05:48 +1100
Subject Re: HTTP Header Capitalization in urllib.request.AbstractHTTPHandler (Python 3.3)
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
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.2955.1384931157.18130.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1384931157 news.xs4all.nl 15864 [2001:888:2000:d::a6]:53883
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:60058

Show key headers only | View raw


On Wed, Nov 20, 2013 at 1:14 PM, Logan <logan@s1network.com> wrote:
> Chris,
>
> That is genius.  Thank you!

Then it works? Awesome!! (Permit me an evil laugh. Muahahahaaaa!)

This is why I love working with open source languages. Even if you
don't end up actually changing anything, you can go and snoop the code
and see what happens - sometimes you can tweak your code based on that
knowledge. And hey. This is duck typing at its best!

ChrisA

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


Thread

Re: HTTP Header Capitalization in urllib.request.AbstractHTTPHandler (Python 3.3) Chris Angelico <rosuav@gmail.com> - 2013-11-20 18:05 +1100

csiph-web