Examples directly from the CGI.pm docs:

"print $query->redirect('http://somewhere.else/in/movie/land');"

And/or:

"You can also use named arguments:

    print $query->redirect(-uri=>'http://somewhere.else/in/movie/land',
                           -nph=>1);"

Therefore it would seem you should use "redirect" rather than "location".

HTH

George M. Jempty
Database Administrator
Regional West Medical Center
Scottsbluff, Nebraska
308.630.2408

-----Original Message-----
From: Mark Stosberg [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 04, 2001 7:24 AM
To: Eric Berg
Cc: [EMAIL PROTECTED]
Subject: Re: [cgiapp] Redirect problem in cgiapp_init


Eric Berg wrote:
> 
>             $self->header_props( -location => 
> 'http://location/of/login.cgi' );

Eric,

try using "url" or "uri" instead of "location". I'm not sure "location" is
supported in CGI.pm as you've used it. 

  -mark



 . . . . . . . . . . . . . . . . . . . . . . . . . .
   Mark Stosberg              Principal Developer  
   [EMAIL PROTECTED]       Summersault, LLC     
   v: 765-939-9301 ext 223    website development  
 . . . . . http://www.summersault.com/ . . . . . . .

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

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

Reply via email to