Code review comment for lp:~mbp/bzr/doc

Revision history for this message
John A Meinel (jameinel) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Martin Pool wrote:
> On 7 July 2010 00:21, John A Meinel <email address hidden> wrote:
>> If you're going to be documenting http[s]_proxy shouldn't you also
>> document no_proxy, all_proxy, and the rest?
>
> Good point. I didn't actually know about them. Where are they defined?
>

Vincent would know better than myself. There is some documentation here:
  http://docs.python.org/library/urllib.html

The urlopen() function works transparently with proxies which do not
require authentication. In a Unix or Windows environment, set the
http_proxy, or ftp_proxy environment variables to a URL that identifies
the proxy server before starting the Python interpreter. For example
(the '%' is the command prompt):

% http_proxy="http://www.someproxy.com:3128"
% export http_proxy
% python
...

The no_proxy environment variable can be used to specify hosts which
shouldn’t be reached via proxy; if set, it should be a comma-separated
list of hostname suffixes, optionally with :port appended, for example
cern.ch,ncsa.uiuc.edu,some.host:8080.

In a Windows environment, if no proxy environment variables are set,
proxy settings are obtained from the registry’s Internet Settings section.

I think 'all_proxy' is used for both http, https and ftp. 'no_proxy'
allows you to have a 'match everything' http proxy, except for
internal-only websites, etc.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwz0VkACgkQJdeBCYSNAAPcpACgpPZ/aZHi2bz5e7iO80Yh3EmW
dqgAoKXmeoLuACBKOhIqHG7rnkqNnaR6
=o/j0
-----END PGP SIGNATURE-----

« Back to merge proposal