php - How to get content of a javascript/ajax -loaded div on a site? -


I have a php-script that loads page-content from any other website using curl and simple_ html_dom php library is. It works great if I return HTML then I can see div-content there.

However, if I try to select only that div with simple_html_dom, then the developer always gets empty. At first I did not know why I now know that its content is apparently Popups with javascript / ajax.

How will I get the content of the site and then with Javascript it will be able to select div-content after the population is the right content?

Is this possible? Thanks!

Yes, the piece of cake if you are interested only in that special html that will come back by AJAX has gone .

  1. Collect information such as URLs, parameters and request types (post / received) from that AJAX request.
  2. Generate a single request from your php / curl code and you expect
  3. and hope that the server logic will not investigate who sent the request.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -