function _drupal_http_use_proxy

Helper function for determining hosts excluded from needing a proxy.

Return value

TRUE if a proxy should be used for this host.

Related topics

1 call to _drupal_http_use_proxy()
drupal_http_request in includes/common.inc
Performs an HTTP request.

File

includes/common.inc, line 1200

Code

function _drupal_http_use_proxy($host) {
    $proxy_exceptions = variable_get('proxy_exceptions', array(
        'localhost',
        '127.0.0.1',
    ));
    return !in_array(strtolower($host), $proxy_exceptions, TRUE);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.