HOW TO CHECK URL??

T

Tore Aursand

i just want to using regular express to check url

1. Don't top-post.
2. Don't post an answer to your own post if it's not an answer to
your own post.
3. Regexp::Common
 
T

Tad McClellan

Thomas Deschepper said:
On Sat, 06 Mar 2004 23:42:43 +1000, Gregory Toomey wrote:



LWP::Simple->head($url) you mean :)


Since some servers may not respond to head requests,

LWP::Simple->head($url) or LWP::Simple->get($url)

you mean. :)
 
R

Reto Hersiczky

use LWP::Simple;

my ($content_type, $document_length, $modified_time) = head $ARGV[0];

print $content_type ? 'OK' : 'FAIL', "\n";

--retoh :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,147
Messages
2,570,833
Members
47,380
Latest member
AlinaBlevi

Latest Threads

Top