I originally submitted this question here but, after some research, have come to realise that I formulated the question wrong, so am trying again
I'm simply automating a search on a citations web-page using LWP::UserAgent.
When I submit the search online, I get a full page back immediately, with some results on it, but the page is set to refresh automatically, and if I wait a couple of seconds, the page updates exactly how many results I have available (it only shows ten per page).
When I submit using UserAgent and HTTP::Request::Form I get a results page in full, but it's the initial page, which is the page waiting to refresh with ALL the results. It's weird because it's only 10 per page, and the refresh is just to tell you the full number of records found. I cannot figure out what to do about the refresh, because if I resubmit the search I get back the very same initial results page, but I don't know how to 'refresh' for the new page from UserAgent...
What I really dont understand is that I want to download ALL the records via a button, but if I only get the initial web-page, then the number of records is small, i would have thought that especially because the server itself should be continuing to find records, even if I 'press' the button, it would thereby download ALL the records the server has found, and not necessarily the ones found when the results page was first submitted.
Does this make sense?
Thanks janitored by ybiC: Changed <a href...> nodelink to PM-style link a'la [id://392513|here] as per Monastery specification in PerlMonks FAQ
Sam
In reply to refreshing a page/session without re-submitting search by seaver
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |