title: Whois works with fsockopen not with curl
body: <p>This works:</p>
  
  <pre><code>$connection = fsockopen("whois.iis.se", 43);
  fputs($connection, "google.se\r\n");
  while (!feof($connection)) {
      $data .= fgets($connection, 4096);
  }
  fclose($connection);
  echo nl2br($data);
  </code></pre>
  
  <p>But this do not work:</p>
  
  <pre><code>$ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, "whois.iis.se");
  curl_setopt($ch, CURLOPT_PORT, 43);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "google.se\r\n");
  $data = curl_exec($ch); 
  curl_close($ch);
  echo nl2br($data);
  </code></pre>
  
  <p>What is wrong with this curl function?</p>