You are here: Re: cURL and Loading Pages « PHP Programming Language « IT news, forums, messages
Re: cURL and Loading Pages

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация