Actually I want to read the contents that come after the search query, when it is done. The problem is that the URL only accepts POST methods, and it does not t
POST
Try PEAR's HTTP_Request2 package to easily send POST requests. Alternatively, you can use PHP's curl functions or use a PHP stream context.
HTTP_Request2 also makes it possible to mock out the server, so you can unit-test your code easily