X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fsnapshot.php;h=a16087ac00da648d6b3f43307be0c776a1b688b4;hb=d6869cde7ba7e577d54f0c6ecab3599dc85f0f67;hp=6829e8a7510e23350a3b93612b2f39d5df2f7a72;hpb=8a07c7d7c021693271d1856f15dfe0abd9461d5d;p=quix0rs-gnu-social.git diff --git a/lib/snapshot.php b/lib/snapshot.php index 6829e8a751..a16087ac00 100644 --- a/lib/snapshot.php +++ b/lib/snapshot.php @@ -173,10 +173,12 @@ 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(); + try { + $request = HTTPClient::start(); + $request->post($reporturl, null, $this->stats); + } catch (Exception $e) { + common_log(LOG_WARNING, "Error in snapshot: " . $e->getMessage()); + } } /**