specifying additional path information on the command line

specifying additional path information on the command line

Post by David Chri » Wed, 28 Apr 2004 14:23:29


comp.lang.perl.modules:

I am working on some Perl CGI scripts that use "additional path
information". For example, if the user clicks on the following HTML
link:

<A HREF="/cgi-bin/randompicture.cgi/dpchrist/images">demo</A>:

It results in the script randompicture.cgi being called with
"dpchrist/images" as the additional path information. The script can
fetch this additional path information via CGI.pm's path_info() and
path_translated() functions:

my $path = path_translated()
|| die "must be called with additional path information";


I use strict and use CGI::Carp qw(fatalsToBrowser) during development,
but sometimes I still get a "500 Internal Server Error". I would like
to be able to invoke the script from the command line, but can't figure
out how to specify the additional path information. Yes, I RTFM and
STFM. Does anybody know how to do this?


TIA,

David
 
 
 

specifying additional path information on the command line

Post by David Chri » Wed, 28 Apr 2004 15:31:51

I've moved this thread to comp.infosystems.www.authoring.cgi. Sorry for
the confusion.


David