title: What is the best way to send a file via base64 encoding over HTTP
body: <p>In python there is a nice library 'base64', with this module it's possible to encode/decode files based on the filename and the content. I'm developing an API which has the functionality to upload a file. I managed to write some code to encode and decode these files, but what is the correct way to send this encoded base64 message over a HTTP request?</p>
  
  <ul>
  <li>Via a POST and just put the filename and encoded message into a post param?</li>
  <li>Inside the headers?</li>
  </ul>
  
  <p>Any ideas are welcome, if possible show a small http request how you should do it.</p>