title: cURL post with PHP failing
body: <p>Using Postman, I have been able to successfully create an API call to retrieve information from the webserver.</p>
  
  <p>However, I have been unsuccessful in doing the same with PHP. Following are a few screenshots from Postman which I am trying to replicate in PHP.</p>
  
  <p><a href="https://i.stack.imgur.com/3A4MX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3A4MX.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/luaYD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/luaYD.png" alt="enter image description here"></a></p>
  
  <p>This is my PHP code -</p>
  
  <pre><code>$filters = array("1234", "28");
  $selectors = array("Brand", "Name");
  
  $body = array('Filter' =&gt; array('SKU'=&gt;$filters, 'OutputSelector' =&gt; $selectors));
  
  $url = "https://xyz.neto.com.au/do/WS/NetoAPI";
  
  $method = "POST";
  $headers = array(
      "NETOAPI_ACTION: GetItem",
      "NETOAPI_KEY: xxxxxxx",
      "Accept: application/json",
      "NETOAPI_USERNAME: puneeth"     
  );    
  
  $ch = curl_init($url);
  
  curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method); 
  curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
  
  $response = curl_exec($ch);
  $err = curl_error($ch);
  
  curl_close($ch);
  
  if ($err) {
      echo "cURL Error #:" . $err;
  } else {
      echo $response;
  }
  </code></pre>
  
  <p>P.S I have deliberately fudged the url and key.</p>
  
  <p>I am trying to follow instructions as outlined here - <a href="https://developers.neto.com.au/documentation/engineers/api-documentation/products/getitem" rel="nofollow noreferrer">https://developers.neto.com.au/documentation/engineers/api-documentation/products/getitem</a></p>