Similar to reading data from a URLConnection
.
First inform the URLConnection
that you plan to use it
for output
Before getting the connection's input stream, get the connection's output stream and write to it.
Commonly used to talk to CGIs that use the POST method