Uploading files to server via HTTP
I have a collection of files that I'd like to send to a server via HTTP. On the server's end, I plan on using a PHP script to accept the posted data, as it would a "multipart/form-data" encoded form and process it.
It was recommended that I use Apache's HttpClient to encode the file data in "multipart/form-data" format.
1. Can someone help understand how to work with Apache's HttpClient? - i.e. if you have code that makes use of HttpClient, please share it or alternatively, a bullet-point guide. I went to Apache's site and reviewed their documents and examples, but they were more confusing then helpful.
2. If someone knows of an alternative way to do the aforementioned, please share that as well.