As a quick project, I was attempting to use WebService::RTMAgent, which uses LWP for sucking information from Remember the Milk using their API. For some reason, I am seeing truncated data coming back for larger response sizes.

I couldn't see anything obviously wrong in my code, or the library (I posted a ticket on CPAN though), but while searching for clues, I found this, which if true, I imagine could be the issue, since the responses WebService-RTMAgent deal with seem to be all on a massive single line.

Is this a known "problem" or is this acceptable what Perl LWP is doing?

From http://code.google.com/support/bin/answer.py?hl=en&answer=15141:

My reports are truncated when I use Perl LWP. How do I fix it?

Perl LWP module imposes a length-per-line limit that truncates report data. It appears that HTTP::Response has a hard limit to the total line size so it truncates each line. To get around this problem, you can try using wget to download the reports as it doesn't store the response as a member of the object in memory.

In reply to Http::Response truncation issues by sits

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.