Update to httplib.py
I updated httplib.py, python 2.4, to be able to bind to a specific IP address when connecting to a remote site. Would there be any interest in making this available to others? If so, are there instructions on how to post an update? Eldon Ziegler
Eldon Ziegler wrote:
I updated httplib.py, python 2.4, to be able to bind to a specific IP address when connecting to a remote site. Would there be any interest in making this available to others? If so, are there instructions on how to post an update?
Create an issue at http://bugs.python.org/, mark it as a feature request, and attach the patch. That is, assuming this feature is still missing in 2.6 and 3.0. I don't know enough about it to say. Eric.
On Thu, Sep 25, 2008 at 09:00:56AM -0700, Bill Janssen wrote:
Eldon Ziegler <eldonz@atlanticdb.com> wrote:
I updated httplib.py, python 2.4, to be able to bind to a specific IP address when connecting to a remote site.
Would that be something like
conn = httplib.HTTPConnection('82.94.237.218', 80)
Doesn't it already do that?
It's the destination address. AFAIU OP said about source address - in case the program runs on a computer with many addresses - multihomed server or such... Oleg. -- Oleg Broytmann http://phd.pp.ru/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
participants (4)
-
Bill Janssen -
Eldon Ziegler -
Eric Smith -
Oleg Broytmann