Zend_Service_Akismet hardcoded user agent

View: New views
4 Messages — Rating Filter:   Alert me  

Zend_Service_Akismet hardcoded user agent

by Ralf Eggert :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I just want to mention that there is a hardcoded user agent string in
the class Zend_Service_Akismet. It says 'Zend Framework/0.7.0 |
Akismet/1.11' at the moment. I know it this no big deal or a bug or
something like that. But maybe this could be updated some time.

Best Regards,

Ralf


Re: Zend_Service_Akismet hardcoded user agent

by Matthew Ratzloff :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

< protected $_userAgent = 'Zend Framework/0.7.0 | Akismet/1.11';
---
> protected $_userAgent = 'Zend Framework/' . Zend_Version::VERSION . ' |
Akismet/1.11';

-Matt

On Fri, December 28, 2007 8:34 am, Ralf Eggert wrote:

> Hi,
>
> I just want to mention that there is a hardcoded user agent string in
> the class Zend_Service_Akismet. It says 'Zend Framework/0.7.0 |
> Akismet/1.11' at the moment. I know it this no big deal or a bug or
> something like that. But maybe this could be updated some time.
>
> Best Regards,
>
> Ralf


Re: Zend_Service_Akismet hardcoded user agent

by tfk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

There is also a (public) setUserAgent() to almost allow you to do
whatever you want. ;-) And speaking of which - just curious, but is
the format "APP/Ver Akismet/Ver" something Akismet requires you to do?

Also, noticed that the API version is hardcoded in all "calls" -
couldn't that be phased out into a private/protected variable and
set-er etc.?

I guess this depends on a) how frequently Akismet releases an update
to their API and b) how much of those updates break BC, etc.. Speaking
about an API-version, another "nice to have" would be a method
returning the currently support API.

Till

On Dec 28, 2007 6:24 PM, Matthew Ratzloff <matt@...> wrote:

> < protected $_userAgent = 'Zend Framework/0.7.0 | Akismet/1.11';
> ---
> > protected $_userAgent = 'Zend Framework/' . Zend_Version::VERSION . ' |
> Akismet/1.11';
>
> -Matt
>
>
> On Fri, December 28, 2007 8:34 am, Ralf Eggert wrote:
> > Hi,
> >
> > I just want to mention that there is a hardcoded user agent string in
> > the class Zend_Service_Akismet. It says 'Zend Framework/0.7.0 |
> > Akismet/1.11' at the moment. I know it this no big deal or a bug or
> > something like that. But maybe this could be updated some time.
> >
> > Best Regards,
> >
> > Ralf
>
>



--
Till Klampaeckel
e: mailto:klimpong@...
p: +491704018676
l: http://beta.plazes.com/whereis/till

Want to know what's up in Berlin?
- http://berlin.metblogs.com

Re: Zend_Service_Akismet hardcoded user agent

by Simone Carletti :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://akismet.com/development/api/

If it is at all possible, please modify the user agent string you request with to be of the following format:

Application Name/Version | Plugin Name/Version


:)

tfk wrote:
There is also a (public) setUserAgent() to almost allow you to do
whatever you want. ;-) And speaking of which - just curious, but is
the format "APP/Ver Akismet/Ver" something Akismet requires you to do?
LightInTheBox - Buy quality products at wholesale price