<HTML>
<HEAD><TITLE>Test your http server functionality for CGIs</TITLE></HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="DOCUMENTCOUNTRYCODE" value="it"/>
<meta name="DOCUMENTLANGUAGECODE" value="it"/>
<BODY TEXT="black" LINK="blue" VLINK="purple" ALINK="violet" BGCOLOR="white">
<TABLE WIDTH=600 BORDER=0>
<TR><TD ALIGN=CENTER>
<font face="Souvenir LT,Verdana" color=blue size=3>
Test your http server functionality for CGIs
</font></TD></TR>
<TR><TD><font face="Helvetica,Helv,Arial" size=2>
<br>
This html is intended
to test your http server for CGI support.<br>
Enter your first and last names below,
and press the <font color=red>
<b>Send</b></font> button.<br>
</font></TD></TR>
<TR><TD ALIGN=CENTER>
<br>
<table>
<form method=post action="/cgidev2p/hello1.pgm">
<tr><td><font face="Helvetica,Helv,Arial" size=2>
Your first name
</td>
<td><input type="text" name="firstname" size="20"
maxlength="40">
</td></tr>
<tr><td><font face="Helvetica,Helv,Arial" size=2>
Your last name
</td>
<td><input type="text" name="lastname" size="20"
maxlength="40">
</td></tr>
<tr><td colspan=2 align=center>
<font face="Helvetica,Helv,Arial" size=2>
<input type="submit" value="Send">
</form>
</td></tr>
</table>
</TD></TR>
<TR><TD>
<font face="Helvetica,Helv,Arial" size=2>
<br>
<hr noshade>
<br>
Then, take a look at what happens.<br>
If
<ol>
<li>program <b>/cgidev2p/hello1.pgm</b>
responds, providing
<ul>
<li>your first name
<li>your last name
<li>the current release of your OS/400
</ul>
then
<font color="red">
your http server
is all right</font>.
<br><br>
<li>program <b>/cgidev2p/hello1.pgm</b>
responds, but does not provide one of the following
<ul>
<li>your first name
<li>your last name
</ul>
then <font color="red">
your http server is missing
some PTsF for the QtmhCvtDb API</font>.<br>
Check page
<A HREF="/cgidev2o/tips2.htm">
Tips for installation on your AS/400</A>
to get a list of minimum PTF requirements.
<br><br>
<li>program <b>/cgidev2p/hello1.pgm</b>
does not respond,<br>
that is,you get one of the following messages
<ul>
<li>(<i>from Netscape navigator</i>)<br>
<b><font size=3>Error 500</font><br>
Bad script request -- script '/QSYS.LIB/CGIDEV.LIB/hello1.pgm'
not found or not executable</b>
<li>(<i>from Microsoft Internet Explorer 5</i>)<br>
<b><font size=3>The page cannot be displayed</font>
<br> ...<br>
HTTP Error 500 - Internal server error</b>
</ul>
then one of the following may have occurred:
<ul>
<li><font color="red">
your http server is missing
some PTF which enables CGI execution</font>:<br>
make sure to have installed the last PTF cumulative
for the HTTP server.
<li>program <b>hello1</b> fails sending an HTML response
to the browser.<br>
To verify if this is the case:
<ol>
<li><font face=courier>
dsppfm cgidev2/cgidebug</font>
<li>go to the bottom of the file and check whether
the following messages are displayed:
<br><font face=courier>
WrtSection: Section TOP not found.<br>
WrtSection: Section END not found.</font>
</ol>
If you see such messages, this means that the service
program <b>cgisrvpgm2</b> is not able to find HTML
sections
<font face=courier>/$top</font> and
<font face=courier>/$end</font> in HTML source member
<font face=courier>HELLO1</font> in file
<font face=courier>CGIDEV2/DEMOHTML</font>.<br>
This may happen when system value <font face=courier>
QCCSID</font> is <font face=courier>65535</font>.
System value QCCSID 65535 inhibits character conversions from one CCSID to another CCSID.<br>
If that happens, you are quite recommended to
<ul>
<li>replace the QCCSID system value with the default CCSID that you see on page 3 of command<br>
WRKJOB JOB(*) OPTION(*DFNA)
<li>restart the HTTP server instance.
</ul>
</ul>
</ol>
</TD></TR>
</TABLE>
<br><br><br>
</BODY></HTML>
|