[Mapbender-commits] r8602 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Apr 16 00:37:31 PDT 2013


Author: armin11
Date: 2013-04-16 00:37:30 -0700 (Tue, 16 Apr 2013)
New Revision: 8602

Modified:
   trunk/mapbender/http/php/mod_validateInspire.php
Log:
Allow using of a proxy with authentication for inspire validator - thanx to stefan wannemacher ;-)

Modified: trunk/mapbender/http/php/mod_validateInspire.php
===================================================================
--- trunk/mapbender/http/php/mod_validateInspire.php	2013-04-15 09:24:18 UTC (rev 8601)
+++ trunk/mapbender/http/php/mod_validateInspire.php	2013-04-16 07:37:30 UTC (rev 8602)
@@ -44,10 +44,15 @@
 	//$data = http_build_query($data);
 	//check proxy connections
 	if (defined("CONNECTION_PROXY") &&  CONNECTION_PROXY != "") {
+                if (defined("CONNECTION_USER") && CONNECTION_USER != "") {
+                	$auth = base64_encode('$CONNECTION_USER:$CONNECTION_PASSWORD');
+                	$header .= 'Proxy-Authorization: Basic '.$auth;
+                }
 		$context_options = array (
         			'http' => array (
 					'proxy' => "tcp://".CONNECTION_PROXY.":".CONNECTION_PORT,
             				'method' => 'POST',
+                                        'request_fulluri' => true,
             				'header' => $header,
             				'content' => $data
             				)



More information about the Mapbender_commits mailing list