[Catalyst] How to return a 401 from Catalyst

Christopher H. Laco claco at chrislaco.com
Tue Jan 29 21:08:37 GMT 2008


Jason Kohles wrote:
> On Jan 29, 2008, at 3:18 AM, Kieren Diment wrote:
> =

>>
>> On 27 Jan 2008, at 20:59, Ian Docherty wrote:
>>
>>>>
>>>> p.s. I note that there is nothing in Test::WWW (that I can find) =

>>>> that tests return status's such as 200, 401 etc.
>>>>
>>
>>
>> From perldoc Test::WWW::Mechanize:
> ...
>> From perldoc WWW::Mechanize:
> ...
>> from perldoc HTTP::Response:
> ...
>> from HTTP::Headers
> ...
>> .... never mind, you get the idea ...
> =

> =

> =

> Or you can take the easy approach, and stop with the first one...
> =

> $mech->link_status_is( 'http://localhost/private/', 401, "/private =

> returns a 401" );
> =


Or, if you've made the request already:


$m->status

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20080129/d7f6=
13dd/signature.pgp


More information about the Catalyst mailing list