Thanks for taking a closer look. I skimmed over the callback stuff in LWP::Useragent and it didn't leave me optimistic. Might be more useful if I write this using just LWP::UserAgent, but I don't think I will have time for that.

I'll look into writing to a file. My guess is that I'm going to hit the max data cap regardless, unless REST::Client is setting a cap to protect the user.

Hmm, maybe I'm thinking about this the wrong way. If I hit max data then I know I have pending changes, so a restart is needed. So I know I hit max data I can proceed with my processing (checking if a restart is already in progress). I'll check what error information REST::Client gets me and see what I can do with that.

Elda Taluta; Sarks Sark; Ark Arks
My deviantART gallery


In reply to Re^2: Paging with REST::Client? by Argel
in thread Paging with REST::Client? by Argel

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.