http://qs321.pair.com?node_id=11111314

Argel has asked for the wisdom of the Perl Monks concerning the following question:

After so much fun with Forking and shelling out to curl (and thanks for all the help), I now have access to a RHEL 7 box with lots of packaged modules, including REST::Client, which someone in my company managed to get officially blessed and packaged.So, great!! Much cleaner than using curl, etc. Allowed me to write a new daemon that checks for queued changes and decides whether to kick off a DHCP restart. It usually works great, but there are times when we are importing a ton of changes (e.g. 1800+ ) and I'm hitting the max amount of data REST::Client will accept.

When I was shelling out to curl, the way I was handing this was using _max_results and _paging with the REST calls (and checking if I needed to loop ove the _paging calls). So, I'm wondering if there's an easy way to pull this off with REST::Client? It doesn't look like it, however I can pass in my own LWP::UserAgent object -- is there a way to have LWP::UserAgent handle the paging under the hood? Guessing not based on my supersearch and duckduckgo searches, but thought I'd ask. Assuming not, is there another Perl module designed to handle this while providing a clean, simple interface?

Elda Taluta; Sarks Sark; Ark Arks
My deviantART gallery