How to set http proxy in commad promt

How to set HTTPS proxy from command prompt?

Windows Syntax:
set https_proxy=https://<username>:<password>@<IP>:port
Example: set https_proxy=https://ram.krishna:ram%40123@172.168.2.3:8080

Linux:
export https_proxy=https://<username>:<password>@<IP>:port
Example: set https_proxy=https://ram.krishna:ram%40123@172.168.2.3:8080

note:if user password has any special charectors that has to replace with ASCII code
Example:ram@123 has to replaced with ram%40123

How to set HTTP proxy from command prompt?


Windows Syntax:
set http_proxy=http://<username>:<password>@<IP>:port
Example: set http_proxy=http://ram.krishna:ram%40123@172.168.2.3:8080

Linux:
export https_proxy=https://<username>:<password>@<IP>:port
Example: set http_proxy=http://ram.krishna:ram%40123@172.168.2.3:8080

note:if user password has any special charectors that has to replace with ASCII code
Example:ram@123 has to replaced with ram%40123

No comments:

Post a Comment