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: this applet will not work if you are behind a firewall and can't connect to this server directly. See the Applet Security doc for details.