[Mapbender-commits] r8670 - trunk/mapbender/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Jul 15 06:48:40 PDT 2013
Author: armin11
Date: 2013-07-15 06:48:40 -0700 (Mon, 15 Jul 2013)
New Revision: 8670
Modified:
trunk/mapbender/http/classes/class_connector.php
Log:
Solves a problem when using http_auth secured wms which generate the caps dynamically from the calling url (e.g. conterra security manager)
Modified: trunk/mapbender/http/classes/class_connector.php
===================================================================
--- trunk/mapbender/http/classes/class_connector.php 2013-07-15 09:42:00 UTC (rev 8669)
+++ trunk/mapbender/http/classes/class_connector.php 2013-07-15 13:48:40 UTC (rev 8670)
@@ -218,8 +218,12 @@
$host = $arURL["host"];
$port = $arURL["port"];
if($port == ''){
- $port = 80;
+ $port = 80;
+ if($arURL["scheme"] == "https"){
+ $port = 443;
+ }
}
+
$path = $arURL["path"];
// fill array (HOSTs not for Proxy)
@@ -283,6 +287,7 @@
curl_setopt($ch, CURLOPT_POST, 1);
}
curl_setopt($ch, CURLOPT_POSTFIELDS, $this->httpPostData);
+ //$e = new mb_exception($this->httpPostData);
}
$useragent=CONNECTION_USERAGENT;
//Build own headers for GET Requests - maybe needful?
More information about the Mapbender_commits
mailing list