Proxy setting Scala

Is there a way to set up a Proxy that requires authentication via the environment variable?
Something like HTTP_PROXY=http://username:password@proxy_host:port
It works when I specify it in the simulation file but I was wondering if there is an easier way to do it, like in just one place, and not have to do it in each simulation that I have?

Didn’t see this message…

Look about how to read environment variables in scala.
My personal preferred way: sys.env.get("HTTP_PROXY")


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.