dime has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to get picture results from yahoo through our firewall. For the yahoo image search results page, this works:
my $ua = LWP::UserAgent->new; $ua->proxy('http', $proxyname); my $req = HTTP::Request->new('GET', $url); my $page = $ua->request($req)->content;
Now I would like to store the actual pictures that come with the search results in a file, not just the urls. I've never stored pictures before and am not sure how to combine picture retrieval with getting through the firewall. I've tried basically the same as above, but with the url for the picture, and handed the results over to getstore. That does not work; the return format of Request obviously is not a url. So how to do this? Any help would be appreciated. - Dime
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Get picture through firewall
by Tanktalus (Canon) on Aug 26, 2009 at 03:26 UTC | |
by dime (Novice) on Aug 26, 2009 at 06:07 UTC | |
|
Re: Get picture through firewall
by Gangabass (Vicar) on Aug 26, 2009 at 03:24 UTC | |
|
Re: Get picture through firewall
by alexm (Chaplain) on Aug 26, 2009 at 12:28 UTC | |
|
Re: Get picture through firewall
by ig (Vicar) on Aug 27, 2009 at 08:47 UTC |