Try using LWP::UserAgent and look at the response code.
In reply to Re: Parsing an intranet web page by mzedeler in thread Parsing an intranet web page by Anonymous Monk