SIMPOL Documentation

Running the Final Version

Now that all our coding is done (the final coded version of this example can be found in the supplied program samples as a console project called urldump. This is the command line we will use to try out the new features:

Example 4.5. Sample Command
urldump.smp "wwwx.cs.unc.edu/~jbs/aw-wwwp/docs/resources/perl/
  perl-cgi/programs/cgi_stdin.cgi" --showheader "--vars=name=Joe&
  textarea=Cool&radiobutton=middleun&checkedbox=pizza&
  selectitem=hamburgers"
      

[Note]Note

The URL in the previous command was found while searching on the Internet. It may or may not be there forever, but it is greatly appreciated for providing an opportunity to test the POST operation in this program. Eventually we may produce a sample program running from our own web site but anticipate the likely web load of a few people trying this out will not greatly inconvenience the university site.

The result of running this new version of the program with the command line parameters shown above, can be seen in the section below:


-----------------  20:41:34 13/08/2009  -----------------
Executing "X:\simpol\projects\console\urldump\bin\urldump.smp" ...
--------------------- program result --------------------
HTTP/1.1 200 OK
Date: Thu, 13 Aug 2009 19:41:35 GMT
Server: Apache/2.2.3 (Red Hat)
Connection: close
Content-Type: text/html

<HEAD>
<TITLE>stdin vars.</TITLE>
<H1>Print CGI STDIN Variables</H1>
</HEAD>
<BODY>
<HR>
<H3>STDIN Variables</H3>
<UL>
<LI>radiobutton = middleun
<LI>checkedbox = pizza
<LI>name = Joe Bloggs
<LI>selectitem = hamburgers
<LI>textarea = Cool form dude
</UL>
</BODY>

---------------------------------------------------------
Successfully executed