Re: [Catalyst] Changing the request-user_agent
On Tue, 20 Mar 2007, Adeola Awoyemi wrote: Is it possible to change the request-user_agent? I am writing some tests where I want to set the user_agent before making the request and have my app behave differently depending on the user agent. You mean in Catalyst::Test ? Looks to me as though you can't as it stand right now, there's no way to access the $agent outside of the package. Patches welcome I'm sure :-) S. ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Changing the request-user_agent
On Tuesday 20 March 2007 18:48, Adeola Awoyemi wrote: s it possible to change the request-user_agent? I am writing some tests where I want to set the user_agent before making the request and have my app behave differently depending on the user agent. http://search.cpan.org/dist/WWW-Mechanize/lib/WWW/Mechanize.pm#%24mech-%3Eagent_alias(_%24alias_) I'm sure this works with Test::WWW::Mechanize::Catalyst as well -- Bogdan Lucaciu http://www.wiz.ro ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/