Since you are running your collections via the newman command line, the only way you can run it via the proxy is to set up the proxy at the system level (OS), as noted in the postman doc below.
I read at github Forum that people use in command line: HTTP_PROXY=âhttp://login:password@proxy:80/â newman run postman_collection.json
but it doesnât work for me. the response is HTTP_PROXY is a wrong command
my idea now was to set HTTP_PROXY as env variable. then i export the file and added the command â-e myenv.jsonâ with key: HTTP_PROXY and value http://login:password@proxy:80/
I need to put two proxies in the newman run CLI. I have a request that needs the proxy and another request that is localhost that doesnât need it. I need the proxy not to apply for the localhost
set HTTP_PROXY=example.com NO_PROXY=localhost && newman run collection.json