Skip to main content.
home | support | download

Back to List Archive

Re: swish.cgi configuration bobbles

From: Richard Morin <rdm(at)>
Date: Tue Sep 21 2004 - 18:04:51 GMT
On Sep 21, 2004, at 10:21 AM, Bill Moseley wrote:
> Sorry, I started to install cgi-wrap and got busy with other things.
> Since you have it installed mayb you can print out the environement
> and find something better to use that script_name() that includes the
> /cgi-wrap in the script name -- maybe SCRIPT_URL or REQUEST_URI.

I don't seem to have a SCRIPT_URL here.  REQUEST_URI brings back


There is a variable, however, called PATH_INFO, which resolves to


This lets me do the following:

     my $form =  $q->script_name . $q->path_info;


     my $fsw_pi = $q->path_info;
     $links =~ s|(http://[^\?]+)\?|$1$fsw_pi?|g;

which seem _slightly_ cleaner.

Received on Tue Sep 21 11:05:38 2004