[Mapbender-commits] r8252 - branches/2.7/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Feb 15 04:38:37 EST 2012
Author: verenadiewald
Date: 2012-02-15 01:38:37 -0800 (Wed, 15 Feb 2012)
New Revision: 8252
Modified:
branches/2.7/http/classes/class_connector.php
Log:
include port into http header for curl get requests
Modified: branches/2.7/http/classes/class_connector.php
===================================================================
--- branches/2.7/http/classes/class_connector.php 2012-02-14 13:59:07 UTC (rev 8251)
+++ branches/2.7/http/classes/class_connector.php 2012-02-15 09:38:37 UTC (rev 8252)
@@ -263,10 +263,10 @@
if(strtoupper($this->httpType) == 'POST'){
$headers = array(
"POST ".$path." HTTP/1.1",
- "Content-type: ".$this->httpContentType."; charset=".CHARSET,
- "Cache-Control: no-cache",
- "Pragma: no-cache",
- "Content-length: ".strlen($this->httpPostData)
+ "Content-type: ".$this->httpContentType."; charset=".CHARSET,
+ "Cache-Control: no-cache",
+ "Pragma: no-cache",
+ "Content-length: ".strlen($this->httpPostData)
);
$e = new mb_notice("connector: CURL POST: ".$this->httpPostData);
$e = new mb_notice("connector: CURL POST length: ".strlen($this->httpPostData));
@@ -287,8 +287,8 @@
$headers = array(
"GET ".$path." HTTP/1.1",
"User-Agent: ".$_SERVER['HTTP_USER_AGENT'],
- "Host: ".$host,
- "Accept: */*",
+ "Host: ".$host.":".$port,
+ "Accept: */*",
"Proxy-Connection: Keep-Alive"
);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
More information about the Mapbender_commits
mailing list