CJ7
CJ7

Reputation: 23295

Mechanize to follow meta refresh link

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

Answers (1)

Borodin
Borodin

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

Related Questions