I am working on an application that uses HTTP requests to send data from one server to another. Everything work just fine for strings, but I don't know how to send a file (file upload from one server to another).
I've looked over some examples, but I also need to be able to send a string (a file ID) along with the file.
The request is send from a Java class in the POST Method of that class. Is is like this: Client sends upload request for a file with an ID to a storage server. That storage server then uploads that file to another storage server...so the POST request from the first server to the other is send from the POST method method of that server.
Any sample code or link in the right direction are greatly appreciated.