title: CURL not working from web browser on Red Hat, Apache, PHP, AWS
body: <p>I have a PHP script on a Red Hat AWS server running Apache:</p>
  <pre><code>$url = &quot;https://testsite.com/testfile.txt&quot;;
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, $url);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  $response = curl_exec($ch);
  echo curl_error($ch);
  $responseInfo = curl_getinfo($ch);
  echo &quot;http_code=&quot;.$responseInfo['http_code'].&quot;\n&quot;.$response.&quot;\n&quot;;
  curl_close($ch);
  </code></pre>
  <p>When I run it from the SSH terminal, it works. But if I load the page in a web browser, it returns &quot;http_code=0&quot;. In both cases, curl_error returns nothing.</p>
  <p>What I need to do to allow CURL to work from a web browser?</p>