title: Warning: fsockopen(): unable to connect to http://test6/:80 (Unable to find the socket transport "http"
body: <p>I try to use code below on my local server</p>
  
  <pre><code>&lt;?php
  $hostname = "http://test6/";
  $path = "/test6/handler.php";
  $line = "";
  
  $fp = fsockopen($hostname, 80, $errno, $errstr, 30);
  if (!$fp) echo "$errstr ($errno) &lt;br /&gt;\n";
  else 
  {
      $data = "name=".urlencode("TestName")."&amp;pass=".urlencode("TestPassword")."\r\n\r\n";
      $headers = "POST $path HTTP/1.1\r\n";
      $headers .= "Host: $hostname\r\n";
      $headers .= "Content-type: application/x-www-form-urlencoded; ; charset=utf-8\r\n";
      $headers .= "Content-Length: ".strlen($data)."\r\n\r\n\r\n";
      fwrite($fp, $headers.$data);
  
      while (!feof($fp))
      {
          $line .= fgets($fp, 1024);
      }
      fclose($fp);
  }
  
  echo $line;
  ?&gt;
  </code></pre>
  
  <p>but as result I got </p>
  
  <blockquote>
    <p>Warning: fsockopen(): unable to connect to http ://test6/:80 (Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?) in C:\Winginx\home\test6\public_html\index.php on line 6 Unable to find the socket transport "http" - did you forget to enable it when you configured PHP? (11477112) </p>
  </blockquote>
  
  <p><code>extension=php_openssl.dll</code> in <code>php.ini</code> is enabled.  </p>
  
  <p>Can someone explain me how to make it work?</p>