![]() |
wget is using not the proxy I just set in http_proxy
Hi!
I have in my .bashrc stuff settings for http_proxy and https_proxy. Works like a charm. Now, I want to use _another_proxy to download one file from internet. I set/export http_proxy and https_proxy on the terminal I'm running wget and wget is still using the proxy that was set up in the variables before. why is that? Thanks in advance. Kubuntu 12.04 (updated) |
what do you see if you run "echo $http_proxy"? note that the scope of variables is per session, you can't change them from a different terminal etc.
|
I know. Look:
Code:
$ echo $http_proxy $https_proxy |
Hmm, odd. there are a fair few other variables it might be seeing, anything else in "set | grep -i proxy" ?
|
Code:
$ set | grep -i proxy---------- Post added 10-10-12 at 10:48 AM ---------- That's on the same session I used before. |
Nope, I'm lost!
If you put the variable on the same command line, it does work correctly, right? $ http_proxy=helio.cps.local:8080 wget http://releases.ubuntu.com/lucid/ubu...erver-i386.iso |
do you have a wgetrc? ($HOME/.wgetrc)
|
I thought of the .rc file but I think I have none. Let me double check. Nope, nothing.
Actually, it does not work with the environment variable set on the same command line: Code:
$ http_proxy=helio.cps.local:8080 wget http://releases.ubuntu.com/lucid/ubuntu-10.04.4-server-i386.iso |
try to unset those variables and use strace to see what's happened (which file was accessed before connecting)
|
| All times are GMT -5. The time now is 08:44 AM. |