Using

Suppose wsgi-proxy is listening 127.0.0.1:8888. You can set it using --host and --port options:

$ wsgi-proxy --host 127.0.0.1 --port 8888

Mac OS X

There is system-wide settings for HTTP proxy in Mac OS X. It affects to Safari and Google Chrome. You can find it on System Preferences... ‣ Network ‣ Advanced... ‣ Proxies. Switch on Web Proxy (HTTP), and then fill host and port number of Web Proxy Server to 127.0.0.1 and 8888.

_images/proxy-mac.png

Mozilla Firefox

Firefox provides its own proxy settings. You can find it on Preferences... ‣ Advanced ‣ Network ‣ Connection ‣ Settings.... Choose Manual proxy configuration, and then fill HTTP Proxy to 127.0.0.1 and its Port to 8888.

_images/proxy-firefox.png

Opera

Opera provides its own proxy settings. You can find it on Preferences... ‣ Advanced ‣ Network ‣ Proxy Servers.... Choose Use manual proxy configuration, and then fill Proxy server and Port of HTTP to 127.0.0.1 and 8888.

_images/proxy-opera.png

http_proxy

A lot of Unix utilities e.g. curl, wget and networking libraries e.g. urllib2 respect http_proxy environment variable.

$ http_proxy="127.0.0.1:8888" curl http://python.org/
$ http_proxy="127.0.0.1:8888" wget http://python.org/

GNU Wget

wget command respects http_proxy environment variable:

$ http_proxy="127.0.0.1:8888" wget http://python.org/

curl

curl command provides --proxy1.0 option:

$ curl --proxy1.0 127.0.0.1:8888 http://python.org/

It respects http_proxy environment variable as well:

$ http_proxy="127.0.0.1:8888" curl http://python.org/