how to use php curl to extract data from ajax website

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
lipong
Forum Newbie
Posts: 4
Joined: Tue Nov 11, 2008 5:44 am

how to use php curl to extract data from ajax website

Post 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
User avatar
php_east
Forum Contributor
Posts: 453
Joined: Sun Feb 22, 2009 1:31 pm
Location: Far Far East.

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

Post 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.
Post Reply