title: cUrl not able to get the file from same server
body: <p>I am trying to fetch file from the same server i am running my php script in which i am cUrl to fetch it.</p>
  
  <p>It does not download file and get timeout. 
  I am able to get the file using same url from browser.</p>
  
  <p>cUrl is able to get the file if the url is anything other than the same server.</p>
  
  <p>Are their any settings i need to modify to support file download using cUrl on same server.</p>
  
  <p>Appreciate your help here.</p>
  
  <p>My code:</p>
  
  <pre><code>    $ch = curl_init();
      curl_setopt($ch, CURLOPT_HEADER, 0);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
      curl_setopt($ch, CURLOPT_URL, $file_url);
      $content = curl_exec($ch);
      curl_close($ch);
  </code></pre>