CGI Script and PATH_INFO

ts (decoux@moulon.inra.fr)
Fri, 25 Feb 1994 11:16:13 --100


Apparently, CERN Daemon, NCSA Daemon and Plexus don't give the same
"PATH_INFO" when there is a "+" in the pathname.

Who are right ?

Example : with the simple script "a"

#!/bin/sh
echo Content-type: text/plain
echo
echo $PATH_INFO
echo

-------------------- NCSA -----------------------------

moulon% telnet moulon 9000
Trying 192.93.96.1 ...
Connected to moulon.
Escape character is '^]'.
GET /cgi-bin/a/essai[+%3B+]?a HTTP/1.0
Accept: text/html

HTTP/1.0 200 OK
Date: Saturday, 19-Feb-94 15:12:21 GMT
Server: NCSA/1.1
MIME-version: 1.0
Content-type: text/plain

/essai[ ; ]

Connection closed by foreign host.

------------------- CERN ------------------------------

moulon% telnet moulon 80
Trying 192.93.96.1 ...
Connected to moulon.
Escape character is '^]'.
GET /cgi-bin/a/essai[+%3B+]?a HTTP/1.0
Accept: text/html

HTTP/1.0 200 Document follows
MIME-Version: 1.0
Server: CERN/2.15
Content-Type: text/plain

/essai[+;+]

Connection closed by foreign host.

------------------- Plexus ------------------------------

moulon% telnet moulon 8001
Trying 192.93.96.1 ...
Connected to moulon.
Escape character is '^]'.
GET /cgi-bin/a/essai[+%3B+]?a HTTP/1.0
Accept: text/html

HTTP/1.0 200 Document follows
Date: Saturday, 19-Feb-94 15:12:34 GMT
Server: plexus/3.0j
MIME-version: 1.0
Content-type: text/plain

/essai[+;+]

Connection closed by foreign host.
moulon%
-------------------------------------------------------------------

Guy Decoux