Hi,

We corrected R to r. Problem still remains.
We ran this program as a standalone perl program and even this bombs. Code
as follows.

#!/usr/bin/perl
my $r;
use Apache ();

Apache->request($r);

$r->internal_redirect('hello.html');

Error message : Can't locate object method "request" via package "Apache" at
./test1.pl line 5.

Help please.

Muthu Ganesg
----- Original Message -----
From: Rob Tanner <[EMAIL PROTECTED]>
To: Ken Williams <[EMAIL PROTECTED]>; Differentiated Software
Solutions Pvt. Ltd <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, September 05, 2000 12:10 PM
Subject: Re: internal_redirect


>
>
> --On 09/05/00 01:23:04 -0500 Ken Williams <[EMAIL PROTECTED]>
> wrote:
>
> > [EMAIL PROTECTED] (Differentiated Software Solutions Pvt. Ltd) wrote:
> >> Hi,
> >>
> >>    The following code is not working.
> >>
> >> use Apache;
> >>
> >> Apache->Request->internal_redirect('http://192.168.1.2/smg/html/adce
> >> pt_logo.gif');
> >>
> >> The error is:
> >>
> >> Can't locate object method "Request" via package "Apache" at
> >> ./test.cgi line 5.
> >
> > It's a lowercase 'r'.   Apache->request->...
>
> That's only half the problem.  Internal redirects are just that.  They
> don't include http://server-name.  They are always internal to the
> server immediate server.
>
> Apache->request->internal_redirect('/smg/html/adcept_logo.gif'); is
> correct form.  But if 192.168.1.2 isn't this server, than a full
> redirect is required.
>
> -- Rob
>
>        _ _ _ _           _    _ _ _ _ _
>       /\_\_\_\_\        /\_\ /\_\_\_\_\_\
>      /\/_/_/_/_/       /\/_/ \/_/_/_/_/_/  QUIDQUID LATINE DICTUM SIT,
>     /\/_/__\/_/ __    /\/_/    /\/_/          PROFUNDUM VIDITUR
>    /\/_/_/_/_/ /\_\  /\/_/    /\/_/
>   /\/_/ \/_/  /\/_/_/\/_/    /\/_/         (Whatever is said in Latin
>   \/_/  \/_/  \/_/_/_/_/     \/_/              appears profound)
>
>   Rob Tanner
>   McMinnville, Oregon
>   [EMAIL PROTECTED]

Reply via email to