Test of CgiParser.java
Test
POST |
GET |
POST + Path |
GET + Path
To fully understand how this works, please view the HTML page source ,
source code CgiParser.java ,
and The Unix Shell Script wrapper file CgiParser.sh
which looks something like this:
#!/bin/sh
/usr/local/jdk/bin/java CgiParser "$PATH_INFO" "$QUERY_STRING" "$CONTENT_LENGTH"
POST
<FORM METHOD=POST ACTION="http://samuelsiren.com/cgi-bin/stampede/CgiParser.sh">
The data is sent as content , as read from java.lang.System.in.
GET
<FORM METHOD=GET ACTION="http://samuelsiren.com/cgi-bin/stampede/CgiParser.sh">
The data is sent as QUERY_STRING.
Allan:
Boonb:
Boonb-get
Cleve
Drago
Eygil:
11
12
13
Frath:
1.1
2.22
3.333
4.4444
POST + Path
<FORM METHOD=POST ACTION="http://samuelsiren.com/cgi-bin/stampede/CgiParser.sh/ghalt=moo/hegel/ikkak ">
The data is sent as PATH_INFO and content , as read from java.lang.System.in.
Allan:
Boonb:
Boonb-post+path
Cleve
Drago
Eygil:
11
12
13
Frath:
1.1
2.22
3.333
4.4444
GET + Path
<FORM METHOD=GET ACTION="http://samuelsiren.com/cgi-bin/stampede/CgiParser.sh/ghalt=moo/hegel/ikkak/ ">
The data is sent as PATH_INFO and QUERY_STRING.
Allan:
Boonb:
Boonb-get+path
Cleve
Drago
Eygil:
11
12
13
Frath:
1.1
2.22
3.333
4.4444