X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fping.php;h=5698c403875e52b584b80a5fd5f86d8b93a4699f;hb=9f15febf88769493aa834cab5b916cb46298842a;hp=2797c1b2d23d823b7ae636bfdd3a03cdbdaa98c4;hpb=8a07c7d7c021693271d1856f15dfe0abd9461d5d;p=quix0rs-gnu-social.git diff --git a/lib/ping.php b/lib/ping.php index 2797c1b2d2..5698c40387 100644 --- a/lib/ping.php +++ b/lib/ping.php @@ -44,10 +44,8 @@ function ping_broadcast_notice($notice) { array('nickname' => $profile->nickname)), $tags)); - $request = new HTTPClient($notify_url, HTTP_Request2::METHOD_POST); - $request->setHeader('Content-Type', 'text/xml'); - $request->setBody($req); - $httpResponse = $request->send(); + $request = HTTPClient::start(); + $httpResponse = $request->post($notify_url, array('Content-Type: text/xml'), $req); if (!$httpResponse || mb_strlen($httpResponse->getBody()) == 0) { common_log(LOG_WARNING,