title: How can I POST a file to a REST server without writing the file to disk with PHP?
body: <p>I'm trying to send an XML file to a server as part of the POST method for an internal API.</p>
  
  <p>All the PHP documentation points to using the $postVars['file']='@/path/to/file.xml' to actually send the file.</p>
  
  <p>I want to send the file from a string, but it still needs to be sent as a file upload, not a string.</p>
  
  <p>Help?</p>