[cs631apue] CGI SCRIPT_NAME and PATH_INFO
Lingfei Hu
lhu4 at stevens.edu
Wed Dec 2 22:24:57 EST 2015
As for rfc3875, we need to parse SCRIPT_NAME and PATH_INFO from Script-URI.
But I am confused with how to split these two vars from URI.
e.g. , given /cgi-bin/env.pl/foo/bar,
One possible splitting is SCRIPT_NAME = "/cgi-bin/env.pl" PATH_INFO = "
/foo/bar"
Another splitting is SCRIPT_NAME = "/cgi-bin/env.pl/foo" PATH_INFO = "/bar
"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs631apue/attachments/20151202/09e0891e/attachment.htm>
More information about the cs631apue
mailing list