Command Line Interface proxy usage

Skip to end of metadata
Go to start of metadata

If you are having trouble running scripts connecting to the internet in a command line environment due to firewall restrictions, try setting a proxy.

Windows:

set HTTP_proxy=http://my.proxy.server:port

Linux:

export http_proxy=http://my.proxy.server:port

To make proxy settings permanent:
Windows:
add environment variable (configuration panel > system > advanced > environment variables > add user environment variable)

Linux:
add export to user profile and re-source profile

Labels:
cli cli Delete
script script Delete
proxy proxy Delete
connection connection Delete
tip tip Delete
trick trick Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.