summaryrefslogtreecommitdiff
path: root/lib/snapshot.php
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-11-02 17:21:23 +0000
committerSarven Capadisli <csarven@status.net>2009-11-02 17:21:23 +0000
commiteaae5a4c90249330034e8ee1004e85ae6399fe70 (patch)
tree36c5e1420b4340773f7b6cca4ceca0c075869938 /lib/snapshot.php
parent4aa6deb8abb725be7fa6dc30bdfd2e7de1ff24d1 (diff)
parent5581143bee602dbd5417f532f2b483e58d0a4269 (diff)
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'lib/snapshot.php')
-rw-r--r--lib/snapshot.php21
1 files changed, 2 insertions, 19 deletions
diff --git a/lib/snapshot.php b/lib/snapshot.php
index ede846e5b..2a10c6b93 100644
--- a/lib/snapshot.php
+++ b/lib/snapshot.php
@@ -172,26 +172,9 @@ class Snapshot
{
// XXX: Use OICU2 and OAuth to make authorized requests
- $postdata = http_build_query($this->stats);
-
- $opts =
- array('http' =>
- array(
- 'method' => 'POST',
- 'header' => 'Content-type: '.
- 'application/x-www-form-urlencoded',
- 'content' => $postdata,
- 'user_agent' => 'StatusNet/'.STATUSNET_VERSION
- )
- );
-
- $context = stream_context_create($opts);
-
$reporturl = common_config('snapshot', 'reporturl');
-
- $result = @file_get_contents($reporturl, false, $context);
-
- return $result;
+ $request = HTTPClient::start();
+ $request->post($reporturl, null, $this->stats);
}
/**