Proxy Setting for Curl.
You can make a alias in your ~/.bashrc file :
=================
=================
alias curl="curl -x :"
=================
Exp: vi .bashrc
alias curl="curl -x http://172.16.101.87:80"
source
.bashrc
aswathy@AcerPower:~$ alias curl
alias curl='curl -x http://172.16.101.87:8080'
=================
Another solution is to use (maybe the better solution) the ~/.curlrc
file (create it if it does not exist) :proxy = :
aswathy@AcerPower:~$ cat .curlrc
proxy = http://172.16.101.87:8080
aswathy@AcerPower:~$
=================
No comments:
Post a Comment