LWP::Simple to retreive the last_modified time of a URL

Discussion in 'Programming' started by rvaibhav, May 2, 2011.

  1. #1
    Hi All,

    I am trying to retrevie the last modified time of a url.

    For a dynamic website the content of a URL changes, like if there is a comment on the topic, somebody liked it, etc.etc.

    I need to capture the last modified time of the content.

    When I do a $browser->head($url) I try to retreive the last_modified header of the url like,
    ($content_type, $document_length, $modified_time, $expires, $server) = $browser->head($url);

    but the value of $modified_time is returned as blank.

    Can anybody help me out on this.

    I would appreciate any help on this.

    Thanks in Advance
     
    rvaibhav, May 2, 2011 IP