title: Can't connect to WebSocket server with fsockopen
body: <p>Please, help me to connect WebSocket with php.</p>
  
  <p>I try this code, but I've got 400 Bad Request</p>
  
  <pre><code>$fp = fsockopen("cs.money", 443, $errno, $errstr, 30);
  
  if (!$fp) 
  {
      echo "$errstr ($errno)&lt;br /&gt;n";
  } 
  else
  {
      $out = "GET / HTTP/1.1rnrn";
      ///Send data
      fwrite($fp, $out);
  
      ///Receive data - in small chunks :)
      while (!feof($fp)) 
      {
          echo fgets($fp, 128);
      }
  
      fclose($fp);
  }
  </code></pre>