Vinzzz has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
(Little attention : I'm French my English should be good, but I know sure :-/ I try I try ! :D )
I got a little problem with an Automatic Web surfing script that I try to make.
I have to get an HTML report. This Report is a standard Html Table. To get this report I need to authentify myself with an Input forms, and go to the reports page.
For this part, everything is good. I use an UserAgent, cookies ..etc.
BUT (hehehehe yes here is the "BUT")
The HTML reports "need" some time to show data. First We have the message "Please waiting, we extract your data and make the report table ...etc"
Here is my code :
my $req = HTTP::Request->new(GET=>"$page"); my $res = $ua->request($req); #UA is the UserAgent die $res->status_line if not $res->is_success; my $contentpage= $res->content(); open (DEST,">rapport.html"); print DEST $contentpage;
I get the html page with "Please waiting for ...etc" But not the final page with the report ^^ !!
I think that my request takes the first "screenshot" page, but not waiting for the transaction ending.
My Dear monks, I need your great wisdom, I'm a little padawan for sure :D !
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTTP::request How "wait" ?
by polettix (Vicar) on May 23, 2005 at 09:40 UTC | |
by Vinzzz (Initiate) on May 23, 2005 at 10:05 UTC | |
|
Re: HTTP::request How "wait" ?
by awohld (Hermit) on May 24, 2005 at 16:43 UTC | |
|
Re: HTTP::request How "wait" ?
by ghenry (Vicar) on May 23, 2005 at 09:56 UTC | |
by chromatic (Archbishop) on May 24, 2005 at 06:24 UTC |