in reply to How can I get images from urls - Getting 443 and 500 errors
Version 5.64 of LWP is over 13 years old. Which version are you actually using? And why use both LWP and LWP::Simple? This example works fine for me (using LWP 6.02):
use strict; use warnings; use LWP; my $sku = 49176; my $url = "https://mms.image.mckesson.com/CumulusWeb/Images/High_Res/$ +sku.jpg"; my $ua = LWP::UserAgent->new; my $resp = $ua->get($url); print $resp->code;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can I get images from urls - Getting 443 and 500 errors
by kevyt (Scribe) on Mar 20, 2015 at 18:37 UTC | |
|
Re^2: How can I get images from urls - Getting 443 and 500 errors
by kevyt (Scribe) on Mar 20, 2015 at 17:54 UTC |