[Catalyst] Changing the request->user_agent

Adeola Awoyemi adeola at digitalcraftsmen.net
Wed Mar 21 11:41:50 GMT 2007


On 20 Mar 2007, at 23:39, Bogdan Lucaciu wrote:

> I'm sure this works with Test::WWW::Mechanize::Catalyst as well

Thanks guys. That led me along the right path.

I was able to replace:

   use_ok 'Catalyst::Test', 'MyApp';

with:

   use_ok 'Test::WWW::Mechanize::Catalyst', 'MyApp';

And then set the User-Agent header like so:

   $mech->agent( 'Test Agent/0.1' )


Thanks all.

Adeola.



More information about the Catalyst mailing list