These wget recipes show you how to use proxy servers to route your downloads. Proxies can be set using environment variables or via configuration options.

Use an HTTP Proxy

http_proxy=http://proxy.example.com:8080 wget https://google.com

This recipe sets the http_proxy environment variable before invoking wget. The download goes through the proxy server.

Use a Proxy with Authentication

http_proxy=http://user:pass@proxy.example.com:8080 wget https://google.com

This time, we use a proxy server that requires a username and password. These are embedded in the proxy URL as user:pass@.

Created by Browserling

These wget recipes were written down by me and my team at Browserling. We use recipes like this every day to get things done and improve our product. Browserling itself is an online cross-browser testing service powered by alien technology. Check it out!

Secret message: If you love my wget recipe, then I love you, too! Use coupon code WGETLING to get a discount at my company.