title: How can I make a multipart/form-data POST request using Java?
body: <p>In the days of version 3.x of Apache Commons HttpClient, making a multipart/form-data POST request was possible (<a href="http://www.theserverside.com/tt/articles/article.tss?l=HttpClient_FileUpload" rel="noreferrer">an example from 2004</a>). Unfortunately this is no longer possible in <a href="http://hc.apache.org/httpcomponents-client/index.html" rel="noreferrer">version 4.0 of HttpClient</a>.</p>
  
  <blockquote>
    <p>For our core activity "HTTP", multipart is somewhat 
    out of scope. We'd love to use multipart code maintained by some 
    other project for which it is in scope, but I'm not aware of any. 
    We tried to move the multipart code to commons-codec a few years 
    ago, but I didn't take off there. Oleg recently mentioned another 
    project that has multipart parsing code and might be interested 
    in our multipart formatting code. I don't know the current status 
    on that. (<a href="http://www.nabble.com/multipart-form-data-in-4.0-td14224819.html" rel="noreferrer">http://www.nabble.com/multipart-form-data-in-4.0-td14224819.html</a>)</p>
  </blockquote>
  
  <p>Is anybody aware of any Java library that allows me to write an HTTP client that can make a multipart/form-data POST request?</p>
  
  <p>Background: I want to use the <a href="http://api.wiki.zoho.com/ZW---Using-multi~part-form-submit.html" rel="noreferrer">Remote API of Zoho Writer</a>.</p>