title: data-binary parameter in cURL
body: <p>I have to send data-binary parameter through cURL in php.<br>
  This is the command: <code>curl -D - -u user:password -X PUT -H "Content-Type: text/plain" --data-binary "data-id=2010-10-01_15-15-53" https://someurl</code>. In the console this works, now I have to do it in php.</p>
  
  <p>This is the code I have:</p>
  
  <pre><code>    $this-&gt;_curl = curl_init();
      curl_setopt($this-&gt;_curl, CURLOPT_USERPWD, $this-&gt;_loginUser . ":" . $this-&gt;_loginPassword);
      curl_setopt($this-&gt;_curl, CURLOPT_RETURNTRANSFER, 1);
      curl_setopt($this-&gt;_curl, CURLOPT_HEADER, 1);
      curl_setopt($this-&gt;_curl, CURLOPT_FOLLOWLOCATION, 1);
      curl_setopt($this-&gt;_curl, CURLOPT_TIMEOUT, 30);
      curl_setopt($this-&gt;_curl, CURLOPT_URL, $this-&gt;_serviceUrl);//https://someurl
      curl_setopt($this-&gt;_curl, CURLOPT_HTTPHEADER, array('Content-Type: text/plain'));
      curl_setopt($this-&gt;_curl, CURLOPT_CUSTOMREQUEST, 'PUT');
      curl_setopt($this-&gt;_curl, CURLOPT_POSTFIELDS, array('data-id' =&gt; $dataId));//d'2010-10-01_15-15-53'
  
      $response = curl_exec($this-&gt;_curl);
      //$response = HTTP/1.1 201 Created
      curl_close($this-&gt;_curl);
  </code></pre>
  
  <p>the call is accepted by the server, but it doesn't recognize the <strong>data-id</strong> parameter: </p>
  
  <blockquote>
    <p>No data-id property defined in trigger 2010-10-01_15-15-53</p>
  </blockquote>
  
  <p>Any idea what I'm missing?</p>