4 Nov 2003 23:03
Re: [BioPython] how to set proxy for Bio.WWW
Eckhard Lehmann <ecky.l <at> gmx.de>
2003-11-04 22:03:35 GMT
2003-11-04 22:03:35 GMT
> Eckhard Lehmann: > > I want to fetch protein entries from Swissprot, but therefore I need > > to tell > > BioPython my proxy server + proxy username and password. > > > > Has anyone an idea how to do this? > > For unix, set the environment variable 'http_proxy' to the > proxy, as http://username:password <at> hostname/ ... I think. I have managed the auth proxy access by "installing" Jeff Epplers patch (http://mail.python.org/pipermail/python-list/2000-January/021435.html, and slightly modified it for Python 2.3, which I use). Now it works on windows too with a proxy variable setting like http://username:password <at> hostname:port/ But it's funny that this patch wasn't applied in the official source of python - it is in fact very easy to add proxy auth support in this way and it does not that big changes to urllib... > not. It does seem that urllib2 supports proxies with passwords. I had a look at urllib2 too, but it seems a bit overcrowded for simply and only accessing an auth proxy. That is the first case, where I have to say that it is better arranged in perl and LWP. But its also the only case yet. Ecky ;) _______________________________________________ BioPython mailing list - BioPython <at> biopython.org http://biopython.org/mailman/listinfo/biopython
.
Ecky ;)
_______________________________________________
BioPython mailing list - BioPython <at> biopython.org
RSS Feed