title: curl 401 Unauthorized error
body: <p>As shown in image when i am trying to run <strong><a href="https://www.example.com/Push_Order.php?orderId=1562" rel="noreferrer">https://www.example.com/Push_Order.php?orderId=1562</a></strong> It gives me <strong>401 Unathorized</strong> error. But when I run this Url in browser it run well.</p>
  
  <p>Any Idea where is my mistake or what i am missing?</p>
  
  <p><a href="https://i.stack.imgur.com/S0uMi.png" rel="noreferrer"><img src="https://i.stack.imgur.com/S0uMi.png" alt="enter image description here"></a></p>
  
  <p><strong>PHP Curl Code</strong>    </p>
  
  <pre><code>&lt;?php
  
  $ch = curl_init("https://www.example.com/Push_Order.php?orderId=1562");
  
  curl_setopt($ch);
  
  $response = curl_exec($ch);
  
  curl_close($ch);
  ?&gt;
  </code></pre>
  
  <p>and this Push_Order.php file contains only insert query.</p>