title: RAW POST using cURL in PHP
body: <p>How can I do a RAW POST in PHP using cURL?</p>
  
  <p>Raw post as in without any encoding, and my data is stored in a string. The data should be formatted like this:</p>
  
  <pre><code>... usual HTTP header ...
  Content-Length: 1039
  Content-Type: text/plain
  
  89c5fdataasdhf kajshfd akjshfksa hfdkjsa falkjshfsa
  ajshd fkjsahfd lkjsahflksahfdlkashfhsadkjfsalhfd
  ajshdfhsafiahfiuwhflsf this is just data from a string
  more data kjahfdhsakjfhsalkjfdhalksfd
  </code></pre>
  
  <p>One option is to manually write the entire HTTP header being sent, but that seems less optimal.</p>
  
  <p>Anyway, can I just pass options to curl_setopt() that say use POST, use text/plain, and send the raw data from a <code>$variable</code>?</p>