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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Dec 11 09:53:21 PST 2013


Author: armin11
Date: 2013-12-11 09:53:20 -0800 (Wed, 11 Dec 2013)
New Revision: 8751

Modified:
   trunk/mapbender/http/php/mod_validateInspire.php
Log:
Bugfix for new jrc inspire validator from 12.12.2013

Modified: trunk/mapbender/http/php/mod_validateInspire.php
===================================================================
--- trunk/mapbender/http/php/mod_validateInspire.php	2013-12-11 06:53:13 UTC (rev 8750)
+++ trunk/mapbender/http/php/mod_validateInspire.php	2013-12-11 17:53:20 UTC (rev 8751)
@@ -38,7 +38,7 @@
 	//$data .= "http://map1.naturschutz.rlp.de/service_lanis/mod_wms/wms_getmap.php?mapfile=naturschutzgebiet&REQUEST=GetCapabilities&VERSION=1.1.1&SERVICE=WMS";
 	$data .= $xml;
 	$data .= $eol;
-	$data .= '--' . $mime_boundary . $eol;
+	$data .= '--' . $mime_boundary . '--' .$eol;
 	$data .= $eol; // finish with two eol's!!
 	$header = "";
 	$header .= 'Content-Type: multipart/form-data; boundary='.$mime_boundary.$eol;
@@ -76,10 +76,6 @@
 	echo $repl;
 }
 
-
-
-
-
 function validateInspireXml($xml){
 	//$validatorUrl = 'http://localhost/mapbender_trunk/geoportal/log_requests.php';
 	//$validatorUrl = 'http://inspire-geoportal.ec.europa.eu/GeoportalProxyWebServices/resources/INSPIREResourceTester';
@@ -98,12 +94,12 @@
 	//$data .= "http://map1.naturschutz.rlp.de/service_lanis/mod_wms/wms_getmap.php?mapfile=naturschutzgebiet&REQUEST=GetCapabilities&VERSION=1.1.1&SERVICE=WMS";
 	$data .= $xml;
 	$data .= $eol;
-	$data .= '--' . $mime_boundary . $eol;
+	$data .= '--' . $mime_boundary . '--'. $eol;
 	$data .= $eol; // finish with two eol's!!
 	$header = "";
 	$header .= 'Accept: application/xml'.$eol;
 	$header .= 'Content-Type: multipart/form-data; boundary='.$mime_boundary.$eol;
-	$header .= 'Content-Length: '.strlen($data).$eol;
+	//$header .= 'Content-Length: '.strlen($data).$eol;
 	//$data = http_build_query($data);
 	//check proxy connections
 	if (defined("CONNECTION_PROXY") &&  CONNECTION_PROXY != "") {



More information about the Mapbender_commits mailing list