I am trying to send a csv file and its md5 via HTTP Post in Java. I had been trying it out with HttpClient with its examples, but was not able to find a suitable example that sends BOTH csv file and its md5 hash via HTTP Post.
I am able to calculate the md5 but am stuck at the sending of csv file.
Thanks and hope to hear from all.
Regards
Here’s an example, howto upload a file using HttpClient:
http://www.theserverside.com/news/1365153/HttpClient-and-FileUpload
you can send MD5 Hash using a custom header:
and you can read it with HttpServletRequest’s getHeader() like this: