[cgiwrap-users] Errors: path_info & path_translated ???
Brought to you by:
nneul
From: Michael D. S. <mds...@me...> - 2000-12-03 02:26:49
|
I am having problems with CGI.pm on a webserver. path_info() and path_translated() do *not* ``Return[s] additional path information ...'' separate from the calling CGI ?!?! uname -a Linux dante.tera-byte.com 2.2.14C11 #2 Wed Jun 28 00:55:51 PDT 2000 i586 unknown perl -v ... This is perl, version 5.005_03 built for i386-linux ... perl -MCGI -e 'print "CGI.pm version $CGI::VERSION\n";' CGI.pm version 2.56 Calling this: http://www.myweb.com/tmp/test.cgi/tmp/pictures Results in this output: _x_/home/sites/site99/web/tmp/test.cgi_x_ _x_/tmp/test.cgi/tmp/pictures_x_ For this cgi: #!/usr/bin/perl -w use CGI qw/:standard/; print header, start_html; print '_x_', path_translated(), '_x_', "\n"; print p; print '_x_', path_info(), '_x_', "\n"; print end_html; exit 0; As you know, both path_info and path_translated should point to the additional path info: /tmp/pictures; rather than the calling CGI. Here is my CGI environment: DOCUMENT_ROOT=/home/sites/site99/web GATEWAY_INTERFACE=CGI/1.1 HTTP_ACCEPT=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */* HTTP_ACCEPT_CHARSET=iso-8859-1,*,utf-8 HTTP_ACCEPT_ENCODING=gzip HTTP_ACCEPT_LANGUAGE=en HTTP_HOST=www.myweb.org HTTP_USER_AGENT=Mozilla/3.01Gold (Macintosh; I; 68K) PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin PATH_INFO=/tmp/env.pl PATH_TRANSLATED=/home/sites/site99/web/tmp/env.pl QUERY_STRING= REDIRECT_SCRIPT_URI=http://www.myweb.org/tmp/env.pl REDIRECT_SCRIPT_URL=/tmp/env.pl REDIRECT_STATUS=200 REDIRECT_UNIQUE_ID=OimYQ9jqoToAACRkK0k REDIRECT_URL=/tmp/env.pl REMOTE_ADDR=24.29.198.208 REMOTE_PORT=62647 REQUEST_METHOD=GET REQUEST_URI=/tmp/env.pl SCRIPT_FILENAME=/usr/cgiwrap/cgiwrap SCRIPT_NAME=/tmp/env.pl SCRIPT_URI=http://www.myweb.org/tmp/env.pl SCRIPT_URL=/tmp/env.pl SERVER_ADDR=216.234.189.108 SERVER_ADMIN=site99 SERVER_NAME=www.myweb.org SERVER_PORT=80 SERVER_PROTOCOL=HTTP/1.0 SERVER_SIGNATURE= SERVER_SOFTWARE=Apache/1.3.12 Cobalt (Unix) mod_ssl/2.6.4 OpenSSL/0.9.5a PHP/4.0.1pl2 mod_auth_pam/1.0a FrontPage/4.0.4.3 mod_perl/1.24 UNIQUE_ID=OimYQ9jqoToAACRkK0k What am I doing wrong??? -- Best Regards, mds mds resource 888.250.3987 "Dare to fix things before they break . . . " "Our capacity for understanding is inversely proportional to how much we think we know. The more I know, the more I know I don't know . . . " |