in reply to The Environment variable for URL...

This question would probably be more apropriate to a discussion forum related to your webserver. However, in the spirit of Perlmonks I offer you a short perl/CGI script that will show you all the environmental variables that are available so you can see if you can find one that suits your needs.
#!/usr/bin/perl -w use strict; use CGI qw(:standard); print header, start_html(-title => 'ENV vars', -bgcolor => 'white'); foreach (sort keys %ENV){ print "<b>$_</b> -> \"$ENV{$_}\"\n<br>\n"; } print end_html;

Replies are listed 'Best First'.
RE: Re: The Environment variable for URL...
by BBQ (Curate) on May 22, 2000 at 07:57 UTC
    Or the non-CGI.pm version of the above...
    #!/usr/bin/perl print "Content-type: text/html\n\n"; print "<html><body><pre>\n"; foreach (sort keys %ENV) { print "\$ENV{$_}\t$ENV{$_}\n"; } print "</pre></body></html>\n\n";