Wget is a super-useful utility to download pages and automate all types of web related tasks. wget是一個超級有用的實用工具來下載網頁和自動化所有類型的網絡有關的任務。 It works for HTTP as well as FTP URL’s.它為HTTP ,以及為FTP URL的。 Here is a brief tutorial on how to use wget through proxy server.這裡是一個簡短的補習就如何使用wget通過代理服務器。

To get wget to use a proxy, you must set up an environment variable before using wget.獲得wget為使用代理,則必須成立一個環境變量使用前wget 。 Type this at the command prompt / console:鍵入此在命令提示符/控制台:
For Windows:對於Windows :
set http_proxy=http:// proxy.example.com : 8080 設置http_proxy =的http:// proxy.example.com8080

For Linux/Unix:為Linux / Unix的:
export http_proxy="http:// proxy.example.com : 8080 " 出口http_proxy =以“ http:// proxy.example.com8080

Replace proxy.example.com with your actual proxy server.取代proxy.example.com與您的實際代理服務器。
Replace 8080 with your actual proxy server port.取代8080 ,與您的實際代理服務器的端口。

You can similarly use ftp_proxy to proxy ftp requests.您可以同樣使用ftp_proxy ,以代理FTP請求。 An example on Linux would be:一個例子,對Linux會是:
export ftp_proxy="http:// proxy.example.com : 8080 " 出口ftp_proxy =以“ http:// proxy.example.com8080

Then you should specify the following option in wget command line to turn the proxy behavior on:那麼你應該指定下列選項,在wget命令行把代理行為的:
–proxy=on -代理=對

Alternatively you can use the following to turn it off:或者,您也可以使用下面的指令來關閉它:
–proxy=off -代理=小康

You can use –proxy-username=" user name " –proxy-passwd=" password " to set proxy user name and password where required.您可以使用代理-用戶名= “ 用戶名 ”代理密碼= “ 密碼 ”設置代理服務器的用戶名和密碼如有需要。
Replace user name with your proxy server user name and password with your proxy server password.取代使用者名稱與您的代理服務器的用戶名和密碼與您的代理服務器的密碼。 Another alternative is to specify them in http_proxy / ftp_proxy environment variable as follows:另外一個替代方案是指定他們在http_proxy / ftp_proxy環境變量如下:
export http_proxy="http:// username : password @ proxy.example.com : 8080 " 出口http_proxy =以“ http://用戶名: password@proxy.example.com8080