/**
	 * Take care of setting up the proxy (do nothing if "noProxy" is set)
	 *
	 * @return void
	 */
	public function proxySetup() {
		global $wgHTTPProxy;

		// If there is an explicit proxy set and proxies are not disabled, then use it
		if ( $this->proxy && !$this->noProxy ) {
			return;
		}

		// Otherwise, fallback to $wgHTTPProxy/http_proxy (when set) if this is not a machine
		// local URL and proxies are not disabled
		if ( Http::isLocalURL( $this->url ) || $this->noProxy ) {
			$this->proxy = '';
		} elseif ( $wgHTTPProxy ) {
			$this->proxy = $wgHTTPProxy;
		} elseif ( getenv( "http_proxy" ) ) {
			$this->proxy = getenv( "http_proxy" );
		}
	}
function wfIsLocalURL($url)
{
    return Http::isLocalURL($url);
}
/**
 * Alias for modularized function
 * @deprecated Use Http::isLocalURL() instead
 */
function wfIsLocalURL($url)
{
    wfDeprecated(__FUNCTION__);
    return Http::isLocalURL($url);
}
 /**
  * Take care of setting up the proxy
  * (override in subclass)
  *
  * @return String
  */
 public function proxySetup()
 {
     global $wgHTTPProxy;
     if ($this->proxy) {
         return;
     }
     if (Http::isLocalURL($this->url)) {
         $this->proxy = '';
     } elseif ($wgHTTPProxy) {
         $this->proxy = $wgHTTPProxy;
     } elseif (getenv("http_proxy")) {
         $this->proxy = getenv("http_proxy");
     }
 }