Linux Proxy

Hi,

I am having windows proxy server and it is having proxy.pac file, so for accessing internet we are using automatic proxy url setting in the browser (http://windowsservername/file.pac\).

Now my requirement is if I want to set the proxy settings in linux server from the cmd line how can I do.
export http_proxy=http://windowsservername/file.pac is not working

unfortunately this is useless for access the proxy servers in shells
because .pac is java script file and wget,curl,links ... and others cannot execute this.
instead of this maybe you can write a simple shell script..
or

install
http://pactester.googlecode.com/files/pactester-1.0.8.tar.gz

# cat proxywget
 
#!/usr/bin/env sh
export http_proxy=$(./pactester -p /root/proxy.pac -u "http://$1")
wget "$1"
# ./proxywget www.google.com

regards
ygemici

1 Like