title: echo does not work in Curl in PhpStorm
body: <p>I can not show output of curl.I use phpstorm with Xampp and echo dose not work. output in Browser in </p>
  
  <blockquote>
    <p>502 Bad Gateway</p>
  </blockquote>
  
  <pre><code>&lt;?php
  $execution_time_limit = 25000;
  set_time_limit($execution_time_limit);
  header('Content-type: text/html; charset=utf-8');
  
  
      $url="https://stackoverflow.com/questions/ask";
      $data = getPage($url);
      echo $data;
  
  
  function getPage($url) {
      $ch = curl_init();
      curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
      curl_setopt($ch, CURLOPT_HEADER, false);
      curl_setopt($ch, CURLOPT_BUFFERSIZE, 5555500);
      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
      curl_setopt($ch, CURLOPT_URL, $url);
      curl_setopt($ch, CURLOPT_REFERER, $url);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
      $result = curl_exec($ch);
      curl_close($ch);
      return $result;
  }
  </code></pre>