OS4X HTTP Proxy support

From OS4X
Revision as of 19:01, 29 July 2009 by Admin (talk | contribs) (New page: == Environmental variables == Proxy support in general is handled by most Unix programs by setting environment variables. These variables are: *<code>HTTP_PROXY</code>: hostname or IP addr...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Environmental variables

Proxy support in general is handled by most Unix programs by setting environment variables. These variables are:

  • HTTP_PROXY: hostname or IP address of proxy user
  • HTTP_PROXY_PORT: port number the proxy server is listening on
  • HTTP_PROXY_TYPE: type of proxy, valid values:
    • SOCKS4
    • SOCKS5
    • HTTP
  • HTTP_PROXY_USER: username for proxy authentification
  • HTTP_PROXY_PASSWD: password for proxy authentification

Behaviour in OS4X

If proxy support is disabled, the above variables are overwritten with empty values by all OS4X binaries. In subsequent processes (like event scripts or plugins), these environment share the same variables as the parent processes have. If you need special variable values for the above listed variables, you have to take care about them in your use cases.

If you have enabled proxy support in OS4X and enabled usage of these special environmental variables, OS4X doesn't change these values and doesn't use other definitions for HTTP proxy definitions.

If you have enabled proxy support in OS4X and disabled usage of these special environmental variables, OS4X will change eventually set environment variables by setting them to the defined values in the OS4X definition, so it overwrites these variables in all processes.