$DefaultProxyRules

$DefaultProxyRules

gives the proxy settings used by the Wolfram System when accessing the network.

$DefaultProxyRules["prop"]=value

sets the value of a proxy setting.

Details

  • All network operations in the Wolfram System use the settings in $DefaultProxyRules.
  • Values assigned to $DefaultProxyRules are remembered between kernel sessions.
  • You can also use the menu option Help Internet & Mail Settings Proxy Settings to set the values.
  • The available properties that can be set are:
  • "UseProxy"whether to use the configured settings or your operating system defaults
    "HTTP"proxy to use for HTTP
    "HTTPS"proxy to use for HTTPS
    "FTP"proxy to use for FTP
    "Socks"proxy to use for Socks
  • Possible values for "UseProxy" are:
  • Automaticuse whatever proxies are configured in your operating system or default browser
    "WPAD"use Web Proxy Autodiscovery Protocol to determine proxies (Windows operating systems only)
    Manualuse the settings for specific protocols stored in $DefaultProxyRules
    Nonedo not use a proxy
  • Possible values for the specific protocols "HTTP", "HTTPS, "FTP" and "Socks" are:
  • {"hostname",port}use the specified proxy host and port number
    Nonedo not use a proxy
  • The setting for "UseProxy" is a switch that controls whether the other property values are used.
  • With "UseProxy" set to Automatic, the proxy settings for specific protocols ("HTTP", "HTTPS", etc.) will be ignored, and the proxy settings used will be whatever is configured in your operating system or default browser.
  • With "UseProxy" set to Manual, the proxy settings for the other protocols will be used.
  • With "UseProxy" set to None, no proxy will be used.
  • Most users will leave the "UseProxy" value at its default, Automatic, and rely on their operating system configuration for proxy settings.

Examples

open allclose all

Basic Examples  (3)

Give the current default proxy settings:

Change to use no proxy in the current session and future sessions:

Restore the original value:

Set a proxy specification for the HTTP protocol:

Because the "UseProxy" value acts like a master switch, that HTTP proxy specification will not take effect unless "UseProxy" is set to Manual:

Restore the original proxy values:

Properties & Relations  (1)

Internet operations like URLRead rely on $DefaultProxyRules. Create an invalid proxy specification for the HTTP protocol:

The network operation will fail because the proxy cannot be reached:

Restore the original proxy values:

Wolfram Research (2020), $DefaultProxyRules, Wolfram Language function, https://reference.wolfram.com/language/ref/$DefaultProxyRules.html.

Text

Wolfram Research (2020), $DefaultProxyRules, Wolfram Language function, https://reference.wolfram.com/language/ref/$DefaultProxyRules.html.

CMS

Wolfram Language. 2020. "$DefaultProxyRules." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$DefaultProxyRules.html.

APA

Wolfram Language. (2020). $DefaultProxyRules. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$DefaultProxyRules.html

BibTeX

@misc{reference.wolfram_2024_$defaultproxyrules, author="Wolfram Research", title="{$DefaultProxyRules}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/$DefaultProxyRules.html}", note=[Accessed: 22-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_$defaultproxyrules, organization={Wolfram Research}, title={$DefaultProxyRules}, year={2020}, url={https://reference.wolfram.com/language/ref/$DefaultProxyRules.html}, note=[Accessed: 22-December-2024 ]}