Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I use LWP::UserAgent to download html for research(soughting the key information). When I open the download HTML files and check their source code. The source code lines is connected and some lines are overlapping.( The HTML page shows all right!)I just do not understand what happens. If I resave the HTML pages in Mht. The soure code(in Mht mode) is normal.

Replies are listed 'Best First'.
Re: File saving style
by silent11 (Vicar) on Apr 25, 2002 at 06:00 UTC
    can you show us some of your code?
    If you can use LWP, then try this, it works for me.
    use strict; use LWP::Simple; my $file = 'saved_file.html'; my $url = 'http://silent11.com'; getstore($url,$file);
    -Silent11
      I used to use lwp:: UserAgent with HTTP:: response. And use print $file ("$content"). some web page's source code is clear. some not. When I try your way(getstore), it works perfect. Thanks! ( I can not show you my code. As if I copy it to this colume, there will be no line separator. Can you tell me how to do with it?)
Re: File saving style
by kappa (Chaplain) on Apr 25, 2002 at 06:50 UTC
    How do you check the source of downloaded documents? With what software?