title: Curl, not getting page source code
body: <p>In this script curl is working fine. $output has the page but when I try to echo its source code it displays nothing. I think it has something to do with page headers. Any help!!     </p>
  
  <pre><code>header('content-type:text/plain');
  $ch = curl_init();
  $url = "https://www.amazon.com/gp/css/shiptrack/view.html/ref=TE_SIMP_typ?ie=UTF8&amp;addressID=olqnkqjstjp&amp;latestArrivalDate=1483848000&amp;orderID=103-0753412-5410653&amp;shipmentDate=1483706902&amp;orderingShipmentId=4160817392100&amp;packageId=1";
  curl_setopt($ch, CURLOPT_URL, $url); 
  curl_setopt($ch, CURLOPT_HEADER, false);
  
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($curl, CURLOPT_BINARYTRANSFER, true);
  curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
  
  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  curl_setopt($ch, CURLOPT_MAXREDIRS, 1);
  $output = curl_exec($ch);
  curl_close($ch);
  echo $output;
  </code></pre>