1

Is there a way to configure Solaris system settings (not browser configuration) to delegate proxy configuration/logic to a Proxy Auto Configuration (PAC) script?

Most browsers have support for PAC scripts. I am interested in leveraging an existing PAC script for the Solaris system so that curl, Java HTTP, and other network calls would get proxied according to the rules in the PAC.

Is that possible?

HopelessN00b
  • 54,273

1 Answers1

0

There is not a system wide proxy configuration in unix. Programs like wget use http_proxy environment variable, if set. But you cannot rely on this assumption.

Also, PAC scripts can do fancy things like deciding on a proxy based on current IP adress, etc. Your best bet would be to implement the same logic in a script and execute it to set http_proxy variable.

hayalci
  • 3,721