X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fping.php;h=5698c403875e52b584b80a5fd5f86d8b93a4699f;hb=69ac99ff949ab0118ff25a62471980ad0ec7a52b;hp=2797c1b2d23d823b7ae636bfdd3a03cdbdaa98c4;hpb=fa37967858c3c29000797e510e5f98aca8ab558f;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,