I’m using WWW::Mechanize to retrieve a webpage. I need to check if the page has been updated and retreive information from it. How can I do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use the
mirrormethod. This works fine forGETrequests, see themethodattribute of theformelement which you are submitting. Just take note of the URI where you arrived, use it to repeatedly callmirror. Then there is no need to fill and submit the form anymore.In the case of
POST, you are not able to leverage any assistance from the HTTProtocol (conditional requests, ETags and other cacheability features). You have to manually write out fetched results to files, then compare them.