in reply to Re: LWP::Simple to judge the url
in thread LWP::Simple to judge the url

(and if you don't have Mojolicious installed, LWP::UserAgent does it as well:)

use LWP::UserAgent; my $url = "http://de.arxiv.org/pdf/1106.3541"; print LWP::UserAgent->new->head($url)->headers->content_type()