To write a POST request in Java, you must connect to the destination URL via URLConnection, where you then write the header border bytes, the boundary message (where the keys, values, and any other request data are placed), and the final border.
I wrote the PostProcess class for my application, which allows you to load asynchronous POST request requests, key-value parameters, file parameters (i.e. input for uploading files in the form), and tracking the progress of loading. It also records the server response.
For size and readability, I downloaded the code from outside http://textu.be/T
source share