I am attempting to use LWP to retrieve a webpage. When I retreive this page via Mozilla and select View Source I see the following for a piece of the given page:

Received: from unknown (66.218.66.218)<BR> by m6.grp.scd.yahoo.com with QMQP; 17 Sep 2002 09:47:41 -0000<BR> Received: from unknown (HELO hotmail.com) (207.68.162.118)<BR> by mta3.grp.scd.yahoo.com with SMTP; 17 Sep 2002 09:47:41 -0000<BR> Received: from mail pickup service by hotmail.com with Microsoft SMTPS +VC;<BR> Tue, 17 Sep 2002 02:47:41 -0700<BR>

When I retrieve the same page via LWP I seem to be receiving the following in the HTTP::Response->content:

Received: from unknown (66.218.66.218)<BR> by m6.grp.scd.yahoo.com with QMQP; 17 Sep 2002 09:47:41 -0000<BR> Received: from unknown (HELO hotmail.com) (207.68.162.118)<BR> by mta3.grp.scd.yahoo.com with SMTP; 17 Sep 2002 09:47:41 -0000<BR> Received: from mail pickup service by hotmail.com with Microsoft SMTPS +VC;<BR> Tue, 17 Sep 2002 02:47:41 -0700<BR>

Basically the same content but with the leading spaces missing. These spaces are important as the content is supposed to be a valid SMTP (RFC 2822) message, in which leading spaces matter.

Has anyone experienced a similar problem with LWP? Any suggested solutions?

Andy

@_="the journeyman larry disciple keeps learning\n"=~/(.)/gs, print(map$_[$_-77],unpack(q=c*=,q@QSdM[]uRMNV^[ni_\[N]eki^y@))

In reply to LWP not returning leading spaces in web page by aspen

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.