title: PHP Curl returning empty string on browser, working in postman
body: <p>I have some Php Curl code which was configured by Postman, my API SOAP call works perfectly on Postman but moving it into the browser I am getting back an empty string</p>
  
  <p>I have tested changing the TEXT/XML to JSON as I have a similar call working 100% in JSON/APPLICATION as well as multiple languages but all seem to be returning an empty string.</p>
  
  <pre><code>&lt;?php
  
  $curl = curl_init();
  
  curl_setopt_array($curl, array(
    CURLOPT_URL =&gt; "https://example.com/webservice.cfc?Wsdl=",
    CURLOPT_RETURNTRANSFER =&gt; true,
    CURLOPT_ENCODING =&gt; "",
    CURLOPT_MAXREDIRS =&gt; 10,
    CURLOPT_TIMEOUT =&gt; 30,
    CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST =&gt; "POST",
    CURLOPT_POSTFIELDS =&gt; "&lt;soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:hs=\"https://example.com/webservice.cfc?Wsdl\"&gt;\n    &lt;soapenv:Body&gt;\n        &lt;hs:examplecall&gt;\n            &lt;hs:ws_username&gt;xxx&lt;/hs:ws_username&gt;\n            &lt;hs:ws_password&gt;xxx&lt;/hs:ws_password&gt;\n            &lt;hs:exampleparam&gt;xxx&lt;/hs:exampleparam&gt;\n        &lt;/hs:examplecall&gt;\n    &lt;/soapenv:Body&gt;\n&lt;/soapenv:Envelope&gt;",
    CURLOPT_HTTPHEADER =&gt; array(
      "Accept: */*",
      "Cache-Control: no-cache",
      "Connection: keep-alive",
      "Content-Type: text/xml",
      "Postman-Token: xxx",
      "User-Agent: PostmanRuntime/7.13.0",
      "accept-encoding: gzip, deflate",
      "cache-control: no-cache",
      "content-length: 445",
      "cookie: CFID=xxx; CFTOKEN=xxx"
    ),
  ));
  
  $response = curl_exec($curl);
  $err = curl_error($curl);
  
  curl_close($curl);
  
  if ($err) {
    echo "cURL Error #:" . $err;
  } else {
    echo $response;
  }
  </code></pre>
  
  <p>postman returns me exactly what I am looking for but the above code generated by postman is returning an empty string with no errors so I have nothing to go on.</p>