Forzare l'uso di un proxy con wget: Difference between revisions
Jump to navigation
Jump to search
New page: {{Stub}} Per far usare un proxy a wget: http_proxy='http://proxy.dominio.com:porta' wget http://url.domain.dom/file.ext http://wiki.archlinux.org/index.php/How_to_make_wget_to_work_with... |
mNo edit summary |
||
| Line 1: | Line 1: | ||
Per far usare un proxy a wget: | Per far usare un proxy a wget: | ||
==Utilizzare il proxy da linea di comando== | |||
*Per proxy HTTP | |||
http_proxy='http://proxy.dominio.com:porta' wget http://url.domain.dom/file.ext | http_proxy='http://proxy.dominio.com:porta' wget http://url.domain.dom/file.ext | ||
http://wiki.archlinux.org/index.php/How_to_make_wget_to_work_with_proxy_and_proxy_authentification | *Per proxy FTP | ||
fptp_proxy='http://proxy.dominio.com:porta' wget http://url.domain.dom/file.ext | |||
==Utilizzare il proxy sempre per un utente== | |||
Inserire la variabile nello script di profilo: | |||
vi .bashrc | |||
export http_proxy="http://proxy.example.com:8080" | |||
export ftp_proxy="http://proxy.example.com:8080" | |||
==Utilizzare il proxy sempre System-Wide== | |||
*Inserire i parametri in | |||
sudoedit /etc/wgetrc | |||
<pre> | |||
# You can set the default proxies for Wget to use for http and ftp. | |||
# They will override the value in the environment. | |||
http_proxy = http://proxy:3128/ | |||
ftp_proxy = http://proxy:3128/ | |||
# If you do not want to use proxy at all, set this to off. | |||
use_proxy = on | |||
</pre> | |||
==Riferimenti== | |||
*[http://blog.taragana.com/index.php/archive/how-to-use-wget-through-proxy/ How To Use Wget Through Proxy] | |||
*[http://wiki.archlinux.org/index.php/How_to_make_wget_to_work_with_proxy_and_proxy_authentification Wget - ArchWiki] | |||
Revision as of 09:11, 28 July 2009
Per far usare un proxy a wget:
Utilizzare il proxy da linea di comando
- Per proxy HTTP
http_proxy='http://proxy.dominio.com:porta' wget http://url.domain.dom/file.ext
- Per proxy FTP
fptp_proxy='http://proxy.dominio.com:porta' wget http://url.domain.dom/file.ext
Utilizzare il proxy sempre per un utente
Inserire la variabile nello script di profilo:
vi .bashrc
export http_proxy="http://proxy.example.com:8080" export ftp_proxy="http://proxy.example.com:8080"
Utilizzare il proxy sempre System-Wide
- Inserire i parametri in
sudoedit /etc/wgetrc
# You can set the default proxies for Wget to use for http and ftp. # They will override the value in the environment. http_proxy = http://proxy:3128/ ftp_proxy = http://proxy:3128/ # If you do not want to use proxy at all, set this to off. use_proxy = on