Loading ...
Sorry, an error occurred while loading the content.
 

Re: Status and ErrorDocument

Expand Messages
  • Helmut Zeilinger
    --On Friday, April 30, 2004 19:43:04 -0700 Josh Chamas ... Of course that would work.. I did some trying: It works perfect when i comment out
    Message 1 of 3 , May 3, 2004
      --On Friday, April 30, 2004 19:43:04 -0700 Josh Chamas <josh@...>
      wrote:

      > Helmut Zeilinger wrote:
      >> Hi all,
      >>
      >> when i try to use
      >>
      >> $Response->ErrorDocument (404, '/notfound.page')
      >>
      >> in combination with
      >>
      >> $Response->Status (404)
      >>
      >> i do not get my "notfound page", but a 404 Apache error message
      >> combined with an additional 404 message:
      >>
      >
      > I don't know why this would not work for you. Apache::ASP uses
      > Apache->request->custom_response($code, $uri) internally, and you
      > might try that API directly.
      >
      > If nothing ends up working for you, you might try first doing a:
      >
      > my $error_text = $Response->TrapInclude('notfound.page');
      > $Response->ErrorDocument(404, $$error_text);
      >

      Of course that would work..

      I did some trying:
      It works perfect when i comment out line 459 in ASP/Response.pm (Version
      2.57)

      ..
      $r->status($status) if defined($status);
      ..

      at least what this particular problem concerns..


      Regards

      Helmut

      ---------------------------------------------------------------------
      To unsubscribe, e-mail: asp-unsubscribe@...
      For additional commands, e-mail: asp-help@...
    Your message has been successfully submitted and would be delivered to recipients shortly.