in reply to Re: LWP on Windows: whitespace removed from HTML
in thread LWP on Windows: whitespace removed from HTML

Thanks, but I've tried viewing the output in text editors that recognize the UNIX end-of-line character, like TextPad and WordPad, and the result is the same - the HTML appears mainly on one line. Also, it's not just end-of-line characters that are removed; whitespace used for padding at the beginning of lines is removed as well.
  • Comment on Re^2: LWP on Windows: whitespace removed from HTML

Replies are listed 'Best First'.
Re^3: LWP on Windows: whitespace removed from HTML
by roboticus (Chancellor) on May 05, 2008 at 21:34 UTC

    I assume you did a View|Source on both the DOS and Leopard browsers and that they both show HTML formatted as you expect. The last arrows in my quiver1 are:

    1) Change the agent identity LWP uses? Perhaps the server system just happens to serve up a different version of the document for agents other than the browsers you tried.

    2) Try using a network scanner (Ethereal or some such) to view the packets as they come across the network to verify that the software stack is munching your whitespace.

    ...roboticus

    1: I don't do web/HTML stuff, so my quiver is rather sparse.

Re^3: LWP on Windows: whitespace removed from HTML
by pc88mxer (Vicar) on May 05, 2008 at 22:04 UTC
    My guess, then, is that there aren't any carriage returns in the HTML - i.e. the server isn't generating them. If you give us an example url we can verify that.