[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The server encountered an internal error


On Mon, 2007-01-08 at 16:54 -0800, Tracy12 wrote:
> within my perl module (inside test_Method2) I have simple re direct as
> follows
> 
> sub test_Method2 {
> my $urlNew = "www.mail.yahoo.com";
> printf "Location: $urlNew\n\n";

Just use print here, not printf.

> It hits the test_Method2 method  but a page displays with the following
> content
> 
> Location: www.mail.yahoo.com
> 
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <html><head>
> <title>200 OK</title>

You need to return the correct constant from your handler.  Take a look
at the sample code here:
http://perl.apache.org/docs/2.0/user/coding/cooking.html#Sending_Cookies_in_REDIRECT_Response__handlers_

- Perrin


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.