#
# POST the message to $config['enjit']['apiurl']
#
- $request = new HTTPClient($url, HTTP_Request2::METHOD_POST);
- $request->addPostFields($data);
- $response = $request->send();
-
- // @fixme handle_notice() is supposed to return true/false. Somethin' funky?
- return $response->getStatus();
+ $request = HTTPClient::start();
+ $response = $request->post($url, null, $data);
+
+ return $response->isOk();
}
}