println it

Software blog about tools, builds and making it all work


Uploading files – multipart HTTP POST and Apache HttpClient

I had to implement a files transferring mechanism where one machine was sending files to another using “multipart/form-data” POST request. It can be done using Apache’s Commons FileUpload and HttpClient. The receiving part was an easy one: We parse an incoming request with ServletFileUpload and get a list of FileItems in return. Each FileItem is [...]

, , , , ,