Using the fake web server code from the Perl cookbook (p691) I compared the request headers for the 2 methods. Here are the results
GET /index.htm HTTP/1.1 Connection: TE, close Host: localhost:8989 TE: deflate,gzip;q=0.3 User-Agent: libwww-perl/5.69 GET /index.htm HTTP/1.1 Cache-Control: no-cache Pragma: no-cache Accept: text/*, image/jpeg, image/png, image/*, */* Accept-Charset: iso-8859-1, utf-8;q=0.5, *;q=0.5 Accept-Encoding: x-gzip, gzip, identity Accept-Language: en Host: localhost:8989 User-Agent: Mozilla/5.0 (compatible; Konqueror/3; Linux)
I'm no expert but I suspect it is something to do with the Transfer-Encoding and/or output-filtering caused by the way Apache is configured. I noticed wwww.yahoo.com has no leading spaces even in the browser.
poj

In reply to Re: LWP not returning leading spaces in web page (ver 2) by Anonymous Monk
in thread LWP not returning leading spaces in web page (ver 2) 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.