summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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