[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Validating a URL with MacPerl



I am writing a MacPerl script to manage a web site and
report on broken links, where URLS are used and in what files, etc.

The only outstanding task is to write some code to see if
a URL is still valid. If I have a URL in a variable,
what functions do I need to check the validity of the URL?


$url = "http://www.microsoft.com"
# write some code to access www.microsoft.com and see if
# the URL is valid. The above line is valid, the next line
# is not.

$badurl = "http//www.microsoft.moc"


------------------------------------------------------
Charles Cave                         Sydney, Australia
Email:                         charles@jolt.mpx.com.au
------------------------------------------------------