title: The code I write with /usr/bin/curl works, but the code I write with php curl is not working. Where am I making a mistake?
body: <p>I have written two code scripts below on the terminal I'm working on, I'm writing with php doesn't work and I'm getting a missing parameter alert.</p>
  
  <pre><code>Terminal: /usr/bin/curl -s -X POST "https://api.xxxxxxx.com/action.json?type=modifycontact&amp;resellerno=3040267&amp;resellerpwd=xxxxxxx&amp;lang=tr&amp;responsetype=json" -d "registrycode=81386095&amp;ownercontactid=81045261&amp;admincontactid=81045261&amp;billcontactid=81045261&amp;techcontactid=81045261"
  
  PHP: 
  $url = "https://api.xxxxxxx.com/action.json?type=modifycontact&amp;resellerno=3040267&amp;resellerpwd=xxxxxxx&amp;lang=tr&amp;responsetype=json";
  $value = "registrycode=81386095&amp;ownercontactid=81045261&amp;admincontactid=81045261&amp;billcontactid=81045261&amp;techcontactid=81045261";
          $ch = curl_init();
          curl_setopt($ch, CURLOPT_URL, $url);
  
          curl_setopt ($ch, CURLOPT_POST, 1);
          curl_setopt ($ch, CURLOPT_POSTFIELDS, $value);
          curl_setopt($ch, CURLOPT_HEADER, FALSE); 
          curl_setopt($ch, CURLOPT_NOBODY, FALSE); 
          curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
          curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
          curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 3);
          curl_setopt($ch, CURLOPT_TIMEOUT, 3);
          //$son = array();
          $sonlu = curl_exec($ch);
          $son['sonuc'] = (isset($sonlu) AND !empty($sonlu)) ? $sonlu : json_encode($sunucuhata);
          $son['httpcode'] = curl_getinfo($ch, CURLINFO_HTTP_CODE);
          $son['error'] = curl_error($ch);
          $son['errorno'] = curl_errno($ch);
          curl_close($ch);
  print_r($son);
  
  Terminal response: {"status":"success","description":"OK"}
  
  PHP response: Array
  (
      [sonuc] =&gt; {"status":"error","description":"4553 missing parameter"}
      [httpcode] =&gt; 200
      [error] =&gt; 
      [errorno] =&gt; 0
  )
  </code></pre>