Thanks for your suggestion, here's what I get:
Request: POST /1.1/comment-check HTTP/1.1 Connection: close Accept-encoding: gzip, deflate User-Agent: Zend Framework/1.8.0dev | Akismet/1.11 Host: 8de590181699.rest.akismet.com Content-Type: application/x-www-form-urlencoded Content-Length: 483 user_ip=202.78.152.191&comment_type=contact&comment_author=Anthony+Brown&user_agent=Mozilla%2F5.0+%28Macintosh%3B+U%3B+Intel+Mac+OS+X+10_6_2%3B+en-us%29+AppleWebKit%2F531.21.8+%28KHTML%2C+like+Gecko%29+Version%2F4.0.4+Safari%2F531.21.10&comment_author_email=ant%40webchalk.co.nz&comment_content=Hi+there%2C%0D%0A%0D%0AThe+Zend+Quickstart+Application+is+a+great+sample+for+us+to+learn+the+basics+of+the+framework.%0D%0A%0D%0AThanks%0D%0AAnt&blog=http%3A%2F%2Fantbrown.wordpress.com%2F
Response: true
I'll also send it to Akismet to see if they have any suggestions.
Many thanks
Ant
On 6/01/2010, at 2:28 AM, weierophinney [via Zend Framework Community] wrote:
-- antum <[hidden email]> wrote
(on Tuesday, 05 January 2010, 01:16 AM -0800):Pull the HTTP client from the service, and check to see what you've sent
> I downloaded the Zend Quick Start Application, added Akismet to the
> Guestbook signAction, but everything I pass it is coming back as spam.
>
> I create the Akismet object like this:
>
> $akismet = new Zend_Service_Akismet('apikey',
> 'http://antbrown.wordpress.com/');
>
> I then create the data structure based on $_SERVER arguments, the email
> address and comment.
>
> I pass it to the function $akismet->isSpam() and always get a true response
> even when changing IP's, email addresses and comments.
>
> Please let me know if there is anyway to debug this?
and what the actual response was:
$client = $akismet->getHttpClient();
echo "Request: ", $client->getLastRequest(), "\n\n";
$response = $client->getLastResponse();
echo "Response: ", $response->getBody(), "\n";
If the service is consistently returning a true response to the isSpam
call, you may need to contact the Akismet developers to determine why.
Regardless, having a log of some requests and responses to provide them
will help.
--
Matthew Weier O'Phinney
Project Lead | [hidden email]
Zend Framework | http://framework.zend.com/
View this message in context: Re: [fw-webservices] Akismet flagging everything as spam
Sent from the Zend Web Services mailing list archive at Nabble.com.
没有评论:
发表评论