Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: WWW::Mechanize doesn't respect <base>?

by Corion (Patriarch)
on Apr 26, 2021 at 09:09 UTC ( [id://11131724]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        # Check if we have a <base> tag which should replace the user-supp
    +lied URL
        if( $_[0] =~ s!<\s*\bbase\b[^>]+\bhref=([^>]+)>!!i ) {
    ...
            $url = relative_url( $url, $href );
            #warn "base: $old_url / $href => $url";
        };
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11131724]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-25 00:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found