title: curl to "upload" file contents
body: <p>im currently trying to upload the contents of a binary file (encrypted with openssl aes) via curl to a php Script.</p>
  
  <p>The PHP Code looks like that:</p>
  
  <pre><code>if($_POST["content"] == ""){
  }
  else{
     $myfile = fopen("file.txt","w");
     fwrite($myfile,$_POST["content"]);
     fclose($myfile);
  }
  </code></pre>
  
  <p>so i would normally do:</p>
  
  <pre><code>curl -d "content=&lt;DATA&gt;" http://www.example.com/script.php
  </code></pre>
  
  <p>But as i have a Binary File, that seemed to not work, so i tryed out curl -d with the @ symbol and via -F, but neither worked cause i need to post ist into the "content" part of $_POST.</p>
  
  <p>How would i get that to work correctly?</p>