In Linux/Unix there is an environment variable called “http_proxy” which can be configured for text based internet sessions. This variable is used by wget, curl, lynx etc.
How to set http_proxy variable
Type the following command to set proxy server
How to set the http_proxy variable globally
add the following lines.
How to I use a password protected proxy while using command line internet
#curl --proxy-user <username>:<password> www.technix.in