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


Groups > comp.lang.python > #73408 > unrolled thread

urllib/urllib2 support for specifying ip address

Started byRobin Becker <robin@reportlab.com>
First post2014-06-19 10:22 +0100
Last post2014-06-19 10:22 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

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

#73408 — urllib/urllib2 support for specifying ip address

FromRobin Becker <robin@reportlab.com>
Date2014-06-19 10:22 +0100
Subjecturllib/urllib2 support for specifying ip address
Message-ID<mailman.11137.1403169738.18130.python-list@python.org>
I want to run torture tests against an https server on domain A; I have 
configured apache on the server to respond to a specific hostname ipaddress.

I don't want to torture the live server so I have set up an alternate instance 
on a different ip address.

Is there a way to get urlib or urllib2 to use my host name and a specifed ip 
address?

I can always change my hosts file, but that is inconvenient and potentially 
dangerous.
-- 
Robin Becker

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web