Eight Steps:

  1. Construct the URL.

  2. Call the URL's openConnection() method to create the URLConnection object.

  3. Pass true to the URLConnection's setDoOutput() method

  4. Create the data you want to send, preferably as a byte array.

  5. Call getOutputStream() to get an output stream object.

  6. Write the byte array calculated in step 5 onto the stream.

  7. Close the output stream.

  8. Call getInputStream() to get an input stream object. Read from it as usual.

Previous | Next | Top | Cafe con Leche

Copyright 2000 Elliotte Rusty Harold
Last Modified July 14, 2000