title: file_get_contents against symfony2
body: <p>I have a <code>file_get_contents($myUrl)</code> call from a flat PHP script that isn't working.</p>
  
  <p>If I run <code>$myUrl</code> in a browser it works fine, if I do it over the <code>file_get_contents()</code> it behaves as if the url is incorrect or incomplete.</p>
  
  <p>The myUrl looks like this</p>
  
  <pre><code>https://login.myApp.com/getWifiSettings/ofBoSf593f
  </code></pre>
  
  <p>Where the last part is a token, and the sym2 webApp behaves as if that token is incorrect, the same way as if I were to paste everything but the last character in the browser (thus producing an incorrect token).</p>
  
  <p>I don't know whether this is an issue caused by the file_get_contents() (do I need any parameters with it to work?) or if it is some security setting in my sym2 installation that denies access for such a call (how does it distinguish between a user's web browser calling the route and a script using file_get_contents to access the route?)</p>