Jun 16, 2003 #1 Zas Programmer Oct 4, 2002 211 US Is there a perl function to check to see if the image url that the user supplied is a valid one, and actually works? Happieness is like peeing your pants. Everyone can see it, but only you can feel the warmth.
Is there a perl function to check to see if the image url that the user supplied is a valid one, and actually works? Happieness is like peeing your pants. Everyone can see it, but only you can feel the warmth.
Jun 18, 2003 #2 missbarbell Programmer Aug 1, 2001 457 GB From Sean Burke: use LWP::Simple; my $content = get $url; die "Couldn't get $url" unless defined $content; You could delve deeper into LWP with use LWP; my $browser = LWP::UserAgent->new; my $response = $browser->get( $url ); die "Can't get $url -- ", $response->status_line unless $response->is_success; You get the idea Barbie Leader of Birmingham Perl Mongers http://birmingham.pm.org Upvote 0 Downvote
From Sean Burke: use LWP::Simple; my $content = get $url; die "Couldn't get $url" unless defined $content; You could delve deeper into LWP with use LWP; my $browser = LWP::UserAgent->new; my $response = $browser->get( $url ); die "Can't get $url -- ", $response->status_line unless $response->is_success; You get the idea Barbie Leader of Birmingham Perl Mongers http://birmingham.pm.org
Jun 18, 2003 Thread starter #3 Zas Programmer Oct 4, 2002 211 US thank you... Happieness is like peeing your pants. Everyone can see it, but only you can feel the warmth. Upvote 0 Downvote
thank you... Happieness is like peeing your pants. Everyone can see it, but only you can feel the warmth.