I'd like to know an equivalent to wget enabling me to set the proxy while calling the command (like wget --proxy=$http_proxy).
Any ideas ?
|
I'd like to know an equivalent to wget enabling me to set the proxy while calling the command (like Any ideas ? |
||||
|
|
|
Without modifying your system files at
If you do not have proxy username and password just write the proxy-address and port everywhere like,
This should work. I am assuming you already have proxy settings for all other applications. |
||||
|
|
|
The
|
|||||
|
|
You need to edit the Use your favourite text editor, ie: Look for the http_proxy tag and remove the # in front of it, add the proxy server after the = sign, ie:
Then search for the use_proxy tag and remove the # in front of it, save the file.
If you can't change system configuration with your user you can copy the current configuration to a place you can edit it, ie: |
|||||||||||||||||||||
|
|
Option that is not mentioned, but should be mentioned: Use environmental variables (depending your distro):
or simply
Same for:
You can include a username and password, if you have special characters in your password be sure to include the '-s.
Examples:
|
||||
|
|