title: PHP file_get_contents and exit before page loads
body: <p>I'm wondering how I can use file_get_contents to load an external page and exit off before the page loads (I don't need the output). Here's the essential flow:</p>
  
  <ul>
  <li><p>A: POST request with file_get_contents to B</p></li>
  <li><p>B: <a href="http://php.net/function.ignore_user_abort" rel="nofollow"><code>ignore_user_abort(true);</code></a> and does a very long action</p></li>
  <li><p>A: finishes right after it makes the connection to B</p></li>
  <li><p>B: finishes after the very long action</p></li>
  </ul>
  
  <p>How would I go about "exiting" right when script B starts executing (before the page loads)</p>