]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/snapshot.php
Merge branch '0.9.x' of git://gitorious.org/statusnet/mainline into 0.9.x
[quix0rs-gnu-social.git] / lib / snapshot.php
index 6829e8a7510e23350a3b93612b2f39d5df2f7a72..2a10c6b9359d503dce7c7829f8d5aeff2c4b2f10 100644 (file)
@@ -173,10 +173,8 @@ class Snapshot
         // XXX: Use OICU2 and OAuth to make authorized requests
 
         $reporturl = common_config('snapshot', 'reporturl');
-
-        $request = new HTTPClient($reporturl, HTTP_Request2::METHOD_POST);
-        $request->addPostParameter($this->stats);
-        $request->send();
+        $request = HTTPClient::start();
+        $request->post($reporturl, null, $this->stats);
     }
 
     /**