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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.