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 !
In reply to HTTP::request How "wait" ? by Vinzzz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |