Gregory,
Here is some code I use to check file dates of URL's. If the MasterDate is
set then the url exists otherwise it does not.......
#get the last modified date of the document on the master server
$ua = LWP::UserAgent->new;
$request = HTTP::Request->new(HEAD => $MasterFile);
$response = $ua->request($request);
$MasterDate = ($response->is_success ? $response->last_modified :
0);
Trevor
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: 06 October 2000 15:00
> To: [EMAIL PROTECTED]
> Subject: Checking URLs
>
>
> Dear All,
> I'm looking for a way to check that a URL exists, this would be
> used to validate some user input from a form. I recall seeing a small
> script that was using some of the NET:: stuff to do it, although I
> assume that LWP could do the same. Any one got a similar
> script to hand
> ?
>
>
> _______________________________________________
> Perl-Win32-Web mailing list
> [EMAIL PROTECTED]
> http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web
>
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web