On Sun, 4 Jan 2004, crosebrugh wrote:

> Stumped newbie here. All of the Apache::ASP stuff I'm doing works
> fine except for redirects. I've wittled down my test case to two
> simple files. I've included:
>
> - the contents of those (not using a global.asa)
> - the MSIE resulting page contents
> - the Apache server-info module list
> - the error_log (with Debug -2)
>
> Any pointers/advice/help will be much appreciated.
>
> Thanks.
>
> a.asp:
> ======================================================
> <% $Response->Redirect($Server->URL('b.asp')); %>
> ======================================================
>
> b.asp:
> ======================================================
> <html><head><title>B</title></head>
>       <body><h1>B</h1></body>
> </html>
> ======================================================
>
> I asked for a.asp and I get back:
>
> ================================================================
>
> OK
> The server encountered an internal error or misconfiguration and was
> unable to complete your request.
>
> Please contact the server administrator, foo and inform them of the
> time the error occurred, and anything you might have done that may
> have caused the error.
>
> More information about this error may be available in the server
> error log.
> ----------------------------------------------------------------------
> Apache/2.0.48 (Unix) mod_perl/1.99_12 Perl/v5.8.0 mod_ssl/2.0.48
> OpenSSL/0.9.6b DAV/2 PHP/4.3.4 Server at xxx Port yyyy
> ===============================================================

This may be related to a change in how mod_perl 2 interprets
the status codes, compared to mod_perl 1. Try adding, near
the top of Apache::ASP,
  use Apache::Const -compile => ':common';
and then later on, at about line 157 in the handler sub,
change the line setting $status to
  my $status = Apache::OK;

-- 
best regards,
randy kobes

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

Reply via email to