cURL and Loading Pages

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I'm working on a program the goes out to a website and pulls down some
data using cURL.  The page I'm pulling from has a loading screen
before the data I want is displayed.  The code I have so far is
grabing this loading page instead of the fullly loaded page.  Is there
anything I can do? Below is the code I have so far.

 $ch= curl_init();
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  curl_setopt($ch, CURLOPT_POST, 1);
  curl_setopt($ch, CURLOPT_HEADER,0);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_URL,$url);
  $result = curl_exec($ch);

Re: cURL and Loading Pages

Quoted text here. Click to load it

Dear Aaron,

I would contact the webmaster of that side, if they can provide the
content in a different way. If they have no other way, they properly
do not want you to grab their content.

Good luck

Re: cURL and Loading Pages


on 03/27/2007 11:29 AM Aaron said the following:
Quoted text here. Click to load it

Maybe if you tell what is the URL we can provide better advice.


Manuel Lemos

Metastorage - Data object relational mapping layer generator

PHP Classes - Free ready to use OOP components written in PHP

Re: cURL and Loading Pages

Quoted text here. Click to load it

Pages will come as they are programmed. you can send second request
after the first request.
Grab the header/cookie from first page and send them along with the
url for second page.

And last is there is no full proof solution for these kind of thing if
the site you are trying is not made for that. but generally you will
get success, if that is not login protected.

Site Timeline