17.6. An Applet That Sends POST Data
Listing 17.7 presents an applet that follows the approach outlined in the previous section. The applet uses a URLConnection and an attached ByteArrayOutputStream to send POST data to a URL the user specifies. The applet also makes use of the LabeledTextField class, shown previously in Listing 2.2 and available for download from http://www.coreservlets.com/.