CGI
Basic Test
Examine your environment.
CGI program samples
Simple CGI script samples are presented to show the difference of
script style according to file suffix.
Test of some CGI tools for GET method
Two CGI tools, rc func and qsparse are presented.
Please look URI field of your browser.
- params: how it works
- query: how it works
- rc func qsparse # useful for simple case
- qsparse
Test of some CGI tools for POST method
Two CGI tools, qsparse and formparse, are presented.
- how it works
- rc func qsparse # incorrect
- qsparse # useful for simple case
- formpares # useful for large text
Test of buggy CGI
- bug1.html: exec fail. must be reported to the client.
- bug2.html: wait so much time. must automatically be killed by the server. see `timeout' option of Pegasus.
- debug2.html: test of note handler when waiting so much time. alarm must be caught by the handler.
Test of mount in CGI
Mount in CGI is disallowed in default. However httpd option `-m
' enables mount in CGI.
Look the result:
mount test
Test of exit status in CGI