There are different ways to do this, but the recommended one is to set up the following system-wide environment variable.
- Variable name: http_proxy
- Variable value: protocol://username:password@hostname:port, where
- protocol: can be either https or http, depending on whether the server uses SSL or not
- username:password: used for authentication with the proxy server, usually provided by the proxy server administrator
- hostname: host name or IP address of the proxy server
- port: port number used for the protocol selected
Tip: For users behind an ISA proxy with NTLM authentication: If, for example, you need to prefix the user name with the corresponding domain name -- domain\username -- you would need to escape the backslash character.
Your variable value would be protocol://domain\\username:password@hostname:port.