[Catalyst] Authentication for web services (slightly off topic)

Matt Lawrence matt.lawrence at ymogen.net
Wed Jan 23 16:28:29 GMT 2008


Andrew Payne wrote:
> On Jan 23, 2008 3:23 PM, Ian Docherty <catalyst at iandocherty.com> wrote:
>   
>>  How would you test that or see if it works if you were using the Catalyst
>> built in server?
>>     
>
> Actually, I'm not sure how to get Test::WWW::Mechanize::Catalyst to do
> Basic Auth.
>
> In LWP it's
>
>   $ua = LWP::UserAgent->new;
>   $req = HTTP::Request->new(GET => 'http://site/uri');
>   $req->authorization_basic('user', 'password');
>
> but I'm being thick and can't see a way to feed T::W::M::C a request
> object. Input welcome from anyone who has.
>
>   
WWW::Mechanize isa LWP::UserAgent. Ditto T::W::M::C, AFAIK.

Matt



More information about the Catalyst mailing list