summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorChristopher Vollick <psycotica0@gmail.com>2010-02-22 11:19:16 -0500
committerChristopher Vollick <psycotica0@gmail.com>2010-02-22 11:19:16 -0500
commit1e8e1e836d53b357eb1ddd538c0ceb4d8b289f59 (patch)
treeb469acd911f5e8109a58575434f3e046d7267bb7 /plugins
parentc74aea589d5a79d7048470d44e457dffc8919ad3 (diff)
Rewrote How Blogspam Plugin Made HTTP Requests.
The old way didn't seem to work anymore. It was just sending empty requests.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/BlogspamNetPlugin.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/BlogspamNetPlugin.php b/plugins/BlogspamNetPlugin.php
index 51236001a..9b7ed1c12 100644
--- a/plugins/BlogspamNetPlugin.php
+++ b/plugins/BlogspamNetPlugin.php
@@ -72,8 +72,10 @@ class BlogspamNetPlugin extends Plugin
common_debug("Blogspamnet args = " . print_r($args, TRUE));
$requestBody = xmlrpc_encode_request('testComment', array($args));
- $request = HTTPClient::start();
- $httpResponse = $request->post($this->baseUrl, array('Content-Type: text/xml'), $requestBody);
+ $request = new HTTPClient($this->baseUrl, HTTPClient::METHOD_POST);
+ $request->setHeader('Content-Type', 'text/xml');
+ $request->setBody($requestBody);
+ $httpResponse = $request->send();
$response = xmlrpc_decode($httpResponse->getBody());
if (xmlrpc_is_fault($response)) {