[San-Diego-pm] Photo download problem
Joel Fentin
joel at fentin.com
Tue Aug 24 12:51:32 PDT 2010
Chris Grau wrote:
>
> ...This, for example, works:
>
> use LWP::UserAgent;
>
> my $ua = LWP::UserAgent->new;
> $ua->agent( 'Wget/1.10.2' );
>
> my $response = $ua->get(
> 'http://upload.wikimedia.org/wikipedia/commons/1/19/PacificSilverFir_7645.jpg'
> );
>
> if ( $response->is_success ) {
> say $response->status_line;
> say $response->content_type;
> }
>
> Resulting in:
>
> 200 OK
> image/jpeg
Thank you Chris. That did the trick.
And thank you Rick. I was on the verge of trying your golden
suggestion when Chris's example code arrived. As you know a
working example at hand is worth two in the bush.
--
Joel Fentin tel: 760-749-8863
Biz Website: http://fentin.com
Personal Website: http://fentin.com/me
More information about the San-Diego-pm
mailing list