[Python-Dev] Update to httplib.py

Oleg Broytmann phd at phd.pp.ru
Thu Sep 25 18:04:50 CEST 2008


On Thu, Sep 25, 2008 at 09:00:56AM -0700, Bill Janssen wrote:
> Eldon Ziegler <eldonz at 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 at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.


More information about the Python-Dev mailing list