title: why PHP + curl, HTTP POST request returns null?
body: <p>i am confused why $response does not return anything ,i am new to curl please help,</p>
  
  <pre><code>$post = [
          'AreaCode' =&gt; '02',
          'PhoneNumber' =&gt; '33312733',
          'InquiryBy'   =&gt; 'telephone',
      ];
  
      $ch = curl_init();
       curl_setopt($ch, CURLOPT_URL, 'https://billing.te.eg/api/Account/Inquiry');
       curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
       curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
       curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
       curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
       curl_setopt($ch, CURLOPT_HTTPHEADER, array(
         'Content-Type:application/json',
         'Access-Control-Allow-Origin: *',
       ));
       curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
       curl_setopt($ch, CURLOPT_TIMEOUT, 10);
       $httpCode = curl_getinfo($ch , CURLINFO_HTTP_CODE); 
       $response = curl_exec($ch);
       if ($response === false) $response = curl_error($ch);
       echo stripslashes($response);
       curl_close($ch);
  </code></pre>
  
  <p>while in postman</p>
  
  <p><a href="https://i.stack.imgur.com/eJPh0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eJPh0.png" alt="enter image description here"></a></p>