"John D. Leonard II" wrote:
> 
> All:
> 
> I'm tryin to get the error document facility working for 401 error
> (authorization failure.) My first try was to simply add the following
> code in the Script_OnStart
> 
> sub Script_OnStart{
> $Response->ErrorDocument('401',<<EOF);
> <html>
> <body>
> <h1>Nee-ner nee-ner nee-ner</h1>
> You can't get me!
> </body>
> </html>
> EOF
> }
> 
> However, when I hit a protected page and fail out, the standard message
> is shown.
> 

I am not sure that this will work because the 401 auth layer will
be executed prior to Script_OnStart, or the Apache::ASP handler even,
so your code never gets a chance to run.

For your purposes, you might do what you want better by using
Apache->custom_response API directly in a early mod_perl request
stage, or the Apache ErrorDocument config.

--Josh

_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks Founder                       Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to