title: how to (simply) generate POST http request from java to do the file upload
body: <p>I would like to upload files from java application/applet using POST http event.  I would like to avoid to use any library not included in SE, unless there is no other (feasible) option. <br>
  So far I come up only with very simple solution. <br>
  - Create String (Buffer) and fill it with compatible header (<a href="http://www.ietf.org/rfc/rfc1867.txt" rel="nofollow noreferrer">http://www.ietf.org/rfc/rfc1867.txt</a>)<br>
  - Open connection to server URL.openConnection() and write content of this file to OutputStream. <br>
  I also need to manually convert binary file into POST event. <br><br>
  I hope there is some better, simpler way to do this?</p>