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


Groups > comp.lang.python > #73408

urllib/urllib2 support for specifying ip address

From Robin Becker <robin@reportlab.com>
Subject urllib/urllib2 support for specifying ip address
Date 2014-06-19 10:22 +0100
Newsgroups comp.lang.python
Message-ID <mailman.11137.1403169738.18130.python-list@python.org> (permalink)

Show all headers | View raw


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

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


Thread

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

csiph-web