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


Groups > comp.lang.python > #73434

Re: urllib/urllib2 support for specifying ip address

From Robin Becker <robin@reportlab.com>
Subject Re: urllib/urllib2 support for specifying ip address
Date 2014-06-19 15:19 +0100
References <53A2ABBB.3080907@chamonix.reportlab.co.uk> <CAPTjJmosrF1pKKEiLdPg_XOwmZMNMtgH13YipSxJWg-VZ9kAkg@mail.gmail.com> <53A2CECB.6060605@chamonix.reportlab.co.uk> <CAPTjJmq+e9FCu90hmfRbUW3+r5rrtcSdqsFpANaqa_f4gGhEHA@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.11154.1403187555.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 19/06/2014 13:03, Chris Angelico wrote:
.........
>> I can use python >= 3.3 if required.
>
> The main reason I ask is in case something's changed. Basically, what
> I did was go to my Python 2 installation (which happens to be 2.7.3,
> because that's what Debian Wheezy ships with - not sure why it hasn't
> been updated beyond that), pull up urllib2.py, and step through
> manually, seeing where the hostname gets turned into an IP address.
> Hence, this code:
.........
in practice this approach worked well with urllib in python27.
-- 
Robin Becker

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


Thread

Re: urllib/urllib2 support for specifying ip address Robin Becker <robin@reportlab.com> - 2014-06-19 15:19 +0100

csiph-web