title: Ruby: How to post a file via HTTP as multipart/form-data?
body: <p>I want to do an HTTP POST that looks like an HMTL form posted from a browser. Specifically, post some text fields and a file field.</p>
  
  <p>Posting text fields is straightforward, there's an example right there in the net/http rdocs, but I can't figure out how to post a file along with it.</p>
  
  <p>Net::HTTP doesn't look like the best idea. <a href="http://curb.rubyforge.org/" rel="noreferrer">curb</a> is looking good.</p>