Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking web page links

Status
Not open for further replies.

newtoperl

Technical User
Sep 5, 2003
5
US
I have a web page with about 25 links to local web links on my server. Is there a way in Perl to check the page links and make sure all of them are okay and give me a warning messages about the ones that are not working??

This is on an NT server.
 
You could write a perl program to search out each link, and use the LWP module to try to fetch the page headers for each one. If you get a successful return code, the link is good. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
I am still lost on how this would be done?
Can you provide some sort of example on how to do this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top