Hello!
On Mon, 21 May 2001, Matej Kovacic wrote:
> You mean this...?
>
> # Make HTTP request
> ###################
> my $ua = LWP::UserAgent->new;
> my $webdoc = $ua->request(HTTP::Request->new(GET => $base_url));
>
> # If document exists and it is a HTML file...
> #############################################
> if ($webdoc->is_success) {
> if ($webdoc->content_type eq 'text/html') {
> my $fullhtml = $webdoc->content; # here is the HTML code of the
> $base_url
> }
> }
Yes actually it is. But the problem is not about getting the html source
out of the response I figured that out (I can read :)). I just don't want
to download the images, and other stuffs that comes with it to spare some
resources. Correct me if I'm wrong but I think the UserAgent downloads
them. I made a script that downloads 60 web pages, and I think it
shouldn't use 50Mb-s of memory to store the 60 HTML source code.
Bye, jeges