use Mojo::UserAgent; my $url = "http://de.arxiv.org/pdf/1106.3541" print Mojo::UserAgent->new->head($url)->res->headers->content_type;
This prints application/pdf, indicating that document returned from this URL is a PDF file.
In reply to Re: LWP::Simple to judge the url
by moritz
in thread LWP::Simple to judge the url
by sarvan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |