How to post data in PHP using file_get_contents?

Posted by Paras Chopra on Stack Overflow See other posts from Stack Overflow or by Paras Chopra
Published on 2010-03-15T05:27:20Z Indexed on 2010/03/15 5:29 UTC
Read the original article Hit count: 186

Filed under:
|
|

I am using PHP's function file_get_contents() to fetch contents of a URL and then I process headers through the variable $http_response_header. Now the problem is that some of the URLs need some data to be posted to the URL (for example, login pages). How do I do that?

I realize using stream_context I may be able to do that but I am not entirely clear.

Thanks.

© Stack Overflow or respective owner

Related posts about php

Related posts about file-get-contents