title: Upload a file's content in Python
body: <p>I'd like to use Python 2.7, without any modules not in the standard library, to upload a file to a web server (which will accept such requests). 
  I know that this can be done by uploading the data as part of multi-part form data but, I am wondering if I can just <code>POST</code> with <code>Content-Type: application/pdf</code> (for example) and <code>Content-Length</code> set to the length of the file and, have the content of the post just be the content of the (in this case PDF) file. 
  If so, what's the easiest way to do this?</p>