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.

Allan:

Boonb:

Cleve
Drago

Eygil: 11 12 13

Frath:


GET

<FORM METHOD=GET ACTION="http://samuelsiren.com/cgi-bin/stampede/CgiParser.sh">

The data is sent as QUERY_STRING.

Allan:

Boonb:

Cleve
Drago

Eygil: 11 12 13

Frath:


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:

Cleve
Drago

Eygil: 11 12 13

Frath:


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:

Cleve
Drago

Eygil: 11 12 13

Frath: