|
Posted by Satya on 03/30/07 07:48
On Mar 27, 10:29 am, "Aaron" <A...@flasemi.com> wrote:
> 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);
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.
Navigation:
[Reply to this message]
|