in reply to Last Modification date

While HTTP allows for a Last-Modified date header to be send, it's not required, and it's also not required to be the third line of the response, so I wouldn't say "# This does work". It's more "# It might work, sometimes, for some URLs".

However, the FTP protocol doesn't send a Last-Modified piece of meta data, so you can't get it in the way you are trying. You *might* be able to get the information by using Net::FTP to log in to the server, cd to the appropriate directory, and issue a 'dir' command. You might be able to parse out the last modification date from the response - but then again, the server might not give it to you.

It's important to realize that HTTP and FTP are two very different protocols.

Abigail

Replies are listed 'Best First'.
Re: Re: Last Modification date
by thens (Scribe) on Oct 09, 2003 at 12:22 UTC

    If you decide to go by the Net::FTP method here are somethings that might help you.

    And as Abigail-II says 'you might be able to get this information if your FTP server decides so'

    -T

    use perl; use strict;

Re: Re: Last Modification date
by Anonymous Monk on Oct 09, 2003 at 12:21 UTC
    Thanks for the explanation.