Here is a very simple Applet that uses HTTPClient to POST a string to a cgi-script. Click on Doit to send the request. Here is the source code for it.
Note: you'll have to first move the my_script.cgi
to the
cgi-bin directory on your server, and then you must access this page via
the server. Furthermore, if your browser is not yet JDK 1.1 compatible
(Netscape with the partial JDK 1.1 patch will do too) then you'll have to
unpack the necessary files too (see Running under
JDK 1.0.2). If you do not have your own server you can go to the
example at
Innovation.