Daniel Walsh wrote:
No of course not. HttpClient provides all you need to tailor an appropriate POST request.I was under the impression, though, that the implementation that you spoke of would require an HTML form, or some other type of UI - which my application does not use. Is that not true?
There are two possibilities to upload a file:
1. Use multi-part-MIME. Look at the example MultipartFileUploadApp.java. The part in the ActionListener is what you actually need. On the server side you need to parse the multi-part stuff. Commons FileUpload helps you.
2. Send the plain file as the request body. Look at the example PostXML.java. On the server side you need only the request input stream. That's it.
HTH
Odi
p.s. I will re-TAB the samples in a minute as they look ugly.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]