title: fopen fails to open remote url
body: <p>I'm having some errors with <code>fopen</code> on a remote url.  </p>
  
  <p>I have to post some xml data to another server: since i'd wish to avoid problems with <code>curl</code> library not installed, I preferred using streams.</p>
  
  <p>This is my code:</p>
  
  <pre><code>$url = 'http://test.mysite.com/index.php?foo=bar';
  $params = array('http' =&gt; array('method' =&gt; 'POST','content' =&gt; $data));
  $ctx = stream_context_create($params);
  $fp  = fopen($url, 'rb', false, $ctx);
  
  if (!$fp) {
       throw new Exception("Problem with $url, $php_errormsg");
  }
  $response = stream_get_contents($fp);
  </code></pre>
  
  <p>I tested on a local computer (Windows, PHP 5.3.8) and everthing is fine, tested live (Linux PHP 5.3.13) and is ok, then I tested locally on another pc (Windows 5.2.9).<br>
  Well in this last case, <code>fopen</code> hangs until it gets a timeout.</p>
  
  <p><code>allow_url_fopen</code> is on, there should be no problems with firewall (basically I'm calling myself: <code>localhost/mysite</code> from <code>localhost/mysite</code>)</p>
  
  <p>Since a couple customers of mine reported this error I'd wish to investigate further.<br>
  Any advice?<br>
  Is there a bug or something in PHP 5.2?</p>