Reputation: 23295
How can I get Mechanize get()
to follow a meta refresh link?
My get()
call is returning:
<html>
<head>
</head>
<body text="#000000">
<META HTTP-EQUIV="refresh" CONTENT="0; URL=/TMP/4254358.41083527.html">
</body>
</html>
How can I cause the link to be followed?
Upvotes: 0
Views: 327
Reputation: 126742
You can use the plugin module WWW::Mechanize::Plugin::FollowMetaRedirect
Since you say that's not working for you, I suggest you use
$mech->follow_link(tag => 'meta');
Upvotes: 1