Page 1 of 1

how to use php curl to extract data from ajax website

Posted: Thu Apr 02, 2009 1:38 pm
by lipong
Hi

I`m trying to create a simple script that posts information into a remote form in a website and collects the output page. I decided to use cURL for this.
I managed to get it to work for a few pages but until I had to make it work for an ajax based page.

So my question is how to use curl to interact with an ajax webpage.

Thanks in advance.

luis

Re: how to use php curl to extract data from ajax website

Posted: Thu Apr 02, 2009 1:39 pm
by php_east
quite simply, you cannot. because the ajax can access elements of that page at any time, which will render the one you fetched obsolete.