javascript - Simulate a click with CURL (PHP) -


I am using curl to remove some real estate listings. But, recently, a website changed its way to communicate the phone number: Visitor will have to click on the "Show phone number" link which gives the result in JSL I got this information with the firebug:

< Pre> http://www.realestate.com/phone/click.json?Id=023DSFS

and link to the source code for this (panic):

  & lt; A href = "#" class = "showDetail" & gt; Show phone number & lt; / A & gt;  

So, how can I simulate a click and keep my result in a php var?

Thanks,

Regards.

Maybe you can just

  $ var = json_decode ( File_get_contents ($ url));  

This is assuming allow_url_fopen = on and you do not need specific cookies for http request to return the results.


Comments