X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fhttp-functions.php;h=9bdf939021f3f0cb7b3f9098d4ecdddd77259d52;hb=8253a8e3e0d4fa8a5987e8119c69fa8d290107be;hp=ed9250603be4a0c9545114c00858350fa01cb015;hpb=f1d0a68ef017ce2e658e8e681b8dba79b8f1b4df;p=mailer.git diff --git a/inc/http-functions.php b/inc/http-functions.php index ed9250603b..9bdf939021 100644 --- a/inc/http-functions.php +++ b/inc/http-functions.php @@ -10,11 +10,6 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : HTTP-relevante Funktionen * * -------------------------------------------------------------------- * - * $Revision:: $ * - * $Date:: $ * - * $Tag:: 0.2.1-FINAL $ * - * $Author:: $ * - * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * * Copyright (c) 2009 - 2013 by Mailer Developer Team * * For more information visit: http://mxchange.org * @@ -343,8 +338,14 @@ function sendRawRequest ($host, $request, $allowOnlyHttpOkay = TRUE) { // Get resolver instance $resolver = new HostnameResolver(); - // Get proxy host - $proxyHost = compileRawCode(getProxyHost()); + // Default is no proxy + $proxyHost = NULL; + + // Is the configuration entry set? + if ((!isInstaller()) && (isConfigEntrySet('proxy_host'))) { + // Get proxy host + $proxyHost = compileRawCode(getProxyHost()); + } // END - if // Open connection if (isProxyUsed() === TRUE) {