title: How to post data in PHP using file_get_contents?
body: <p>I'm using PHP's function <code>file_get_contents()</code> to fetch contents of a URL and then I process headers through the variable <code>$http_response_header</code>.</p>
  
  <p>Now the problem is that some of the URLs need some data to be posted to the URL (for example, login pages). </p>
  
  <p>How do I do that?</p>
  
  <p>I realize using stream_context I may be able to do that but I am not entirely clear.</p>
  
  <p>Thanks.</p>