in reply to Get picture through firewall

It'd help if you posted what you tried, even if it doesn't work, because it'd give us a better idea of what you're thinking than simple English prose.

Have you tried writing $page to your file?

my $ua = LWP::UserAgent->new; $ua->proxy('http', $proxyname); my $req = HTTP::Request->new('GET', $url); my $page = $ua->request($req)->content; open my $fh, '>', $filename or die "Can't write to $filename: $!"; binmode $fh; # required on Windows, OS/2, DOS; doesn't hurt anywhere e +lse print $fh $page; close $fh;
(Calling binmode is only one way to do that piece of work.) If this isn't what you mean, I'd need more insight into what you're trying to do.

Replies are listed 'Best First'.
Re^2: Get picture through firewall
by dime (Novice) on Aug 26, 2009 at 06:07 UTC

    I had not. Thanks for this answer, it works well. Didn't think it could be that easy. ;D