Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Mechanize not recognizing link in by ForgotPasswordAgain (Deacon)

on Nov 01, 2007 at 09:02 UTC ( #648450=note: print w/replies, xml ) Need Help??

in reply to Mechanize not recognizing link in <META HTTP-EQUIV="Refresh"

Try looking at the module's source code. I quickly found _link_from_token, which contains this:

if ( $tag eq 'meta' ) { my $equiv = $attrs->{'http-equiv'}; my $content = $attrs->{'content'}; return unless $equiv && (lc $equiv eq 'refresh') && defined $c +ontent; if ( $content =~ /^\d+\s*;\s*url\s*=\s*(\S+)/i ) { $url = $1; $url =~ s/^"(.+)"$/$1/ or $url =~ s/^'(.+)'$/$1/; } else { undef $url; } } # meta

Does your URL match that regex? Maybe there is a bug.

Replies are listed 'Best First'.
Re^2: Mechanize not recognizing link in <META HTTP-EQUIV="Refresh"
by Anonymous Monk on Nov 02, 2007 at 03:27 UTC
    of course that will match, he probably has a really old version of mechanize

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://648450]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2017-12-12 00:57 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (320 votes). Check out past polls.