Andrew Payne wrote:
> On Jan 23, 2008 3:23 PM, Ian Docherty <[EMAIL PROTECTED]> 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

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to