summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Geiger2011-06-28 13:58:43 +0200
committerBjörn Geiger2011-06-28 13:58:43 +0200
commit20568805e3161320dd275fc2836c0326b4cd1758 (patch)
treecd99016a6f07d576333cb0488b48c0d6dcc97a2d
parentPostToHost korrigiert (diff)
downloadpoolctrl-20568805e3161320dd275fc2836c0326b4cd1758.tar.gz
poolctrl-20568805e3161320dd275fc2836c0326b4cd1758.tar.xz
poolctrl-20568805e3161320dd275fc2836c0326b4cd1758.zip
PostToHost: Trennung von http Header und Body
-rw-r--r--application/Functions.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/application/Functions.php b/application/Functions.php
index 704e48e..70c4537 100644
--- a/application/Functions.php
+++ b/application/Functions.php
@@ -57,5 +57,8 @@ function PostToHost($host, $path, $referer, $userAgent, $dataToSend) {
}
fclose($fp);
- return $res;
+ $res = explode("\r\n\r\n",$res);
+ $result['http-header'] = $res[0];
+ $result['http-body'] = $res[1];
+ return $result;
} \ No newline at end of file