function _drupal_http_use_proxy

7.x _drupal_http_use_proxy($host)

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 drupal/includes/
Performs an HTTP request.


drupal/includes/, line 1098
Common functions that many Drupal modules will need to reference.


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