title: GET curl request only works in postman but not in php
body: <p>I'm trying to get html as response but it only works in postman but not in php. In php I get different response like "Something went wrong..."</p>
  
  <p>What I'm missing ?</p>
  
  <p>Here is code:</p>
  
  <pre><code>$curl = curl_init();
  
  curl_setopt_array($curl, array(
    CURLOPT_URL =&gt; "https://www.avnet.com/shop/SearchDisplay?searchTerm=LMK316BJ476ML-T&amp;countryId=apac&amp;deflangId=-1&amp;storeId=715839038&amp;catalogId=10001&amp;langId=-1&amp;sType=SimpleSearch&amp;resultCatEntryType=2&amp;searchSource=Q&amp;searchType=100&amp;avnSearchType=all",
    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; "GET",
    CURLOPT_HTTPHEADER =&gt; array(
      "Cache-Control: no-cache"
    ),
  ));
  
  $response = curl_exec($curl);
  $err = curl_error($curl);
  
  curl_close($curl);
  
  if ($err) {
    echo "cURL Error #:" . $err;
  } else {
    echo $response;
  }
  </code></pre>
  
  <p>postman response</p>
  
  <p><a href="https://i.stack.imgur.com/mXLBT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mXLBT.png" alt="enter image description here"></a></p>
  
  <p>php response</p>
  
  <p><a href="https://i.stack.imgur.com/XKrLD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XKrLD.png" alt="enter image description here"></a></p>
  
  <p>Thanks in advance. </p>