in reply to Re: Download PDF's
in thread Download PDF's

Really?! That's hot. So I could do:

my $response = $robot->get($url, $url); if ($response->is_success and $response->content_type eq 'application/ +pdf'){ print PDF $contents; }

how would i get $contents? Some type of parsing?

I guess that means i can do the same thing with pictures too?

Replies are listed 'Best First'.
Re: Download PDF's
by b10m (Vicar) on Jun 19, 2008 at 15:01 UTC

    Even easier:

    use strict; use LWP::Simple qw/getstore/; my $url = "http://blahblah/file.pdf"; my $file = "/home/user/file.pdf"; getstore($url, $file);
    --
    b10m

      haha, thanks b10m that looks awesome. i think i'm set then