set HTTP_PROXY=http://username:[email protected]:8080
set HTTPS_PROXY=https://username:[email protected]:8080
format: http://username:password@proxy_address:port
example: http://username:[email protected]:8080
-
if
proxy_password
has special characters like%
or '@', then it must be url encoded before use
Example:AbCdEfG%HiJ
After Encoding:AbCdEfG%25HiJ
The following URL Encoder can be used: https://www.urlencoder.org/
-
During Development on local server like nodejs or flask some tools may fail to reach your local dev server because it routes the requests through Proxy
- solution (Python Requests):
- Add your server url to
NO_PROXY
env. variable
set NO_PROXY=localhost:5000
- OR
trust_env = False
check 'requests' documentation
- Add your server url to
- solution (Python Requests):