function _drupal_http_use_proxy

_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

File

includes/common.inc, line 1141
Common functions that many Drupal modules will need to reference.

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);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!common.inc/function/_drupal_http_use_proxy/7.x