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