I want to set system Proxy address through my Qt application. So i was wondering if i could write a script which can be executed by my application every time to change the proxy address.
I tried :
#! /bin/sh
echo "# Generated by Application"
export $1
echo "Proxy Address ${1}
but this script was not successful. I think it was unable to execute "export" command.
Can anyone help me resolving this issue ?
Best Answer
Try this:
Note:
user_id:pass@proxy.server.addr:proxy_port
proxy.server.addr:proxy_port
env | grep proxy
To change system proxy using shell script try these:
If you have user authentication pass and id
To use http_proxy for all other proxy
To set bypass proxy for any host