urllib/urllib2 support for specifying ip address
Robin Becker
robin at reportlab.com
Thu Jun 19 05:22:03 EDT 2014
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
More information about the Python-list
mailing list