aspen has asked for the wisdom of the Perl Monks concerning the following question:
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@))
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP not returning leading spaces in web page
by fokat (Deacon) on Feb 01, 2003 at 04:36 UTC | |
by aspen (Sexton) on Feb 01, 2003 at 08:41 UTC | |
by Hofmator (Curate) on Feb 01, 2003 at 10:17 UTC |