Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 WWW::Mechanize 来检索网页。我需要检查页面是否已更新并从中检索信息。我怎样才能做到这一点?
使用mirror方法。这适用于GET请求,请参阅您提交method的元素的属性。form只需记下您到达的URImirror ,用它来重复调用. 然后不再需要填写和提交表格。
mirror
GET
method
form
在 的情况下POST,您无法利用 HTTProtocol 的任何帮助(条件请求、ETag 和其他可缓存性功能)。您必须手动将获取的结果写入文件,然后进行比较。
POST