[issue3972] Add Option to Bind to a Local IP Address in httplib.py

R. David Murray report at bugs.python.org
Mon Dec 28 23:23:34 CET 2009


R. David Murray <rdmurray at bitdance.com> added the comment:

You are correct that more than just httplib may need this; however, it
is a real need.  Consider for example a machine that has multiple IPs on
the same network (perhaps there used to be two machines but the services
were consolidated onto one or something), and some other server it talks
to is using IP based security in its .htaccess file.  So the client
machine needs to bind to the IP address that the server machine has
authorized to access the web service.  This is why, for example, the ssh
command has a '-b' option to specify the port to which the client binds.
 Or, for an even more apropos example, wget has a --bind-address option
for this reason.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3972>
_______________________________________


More information about the Python-bugs-list mailing list