Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: WWW::Mechanize to Access HTTPS with Cookies

by Thelonius (Priest)
on Sep 21, 2005 at 04:18 UTC ( [id://493656]=note: print w/replies, xml ) Need Help??


in reply to WWW::Mechanize to Access HTTPS with Cookies

WWW::Mechanize should take care of hidden fields automatically, so you could delete these lines:
for ($output =~ /name=\"DV_DATA\" type=\"hidden\" VALUE=\"(.*?)\">/smi +){ $dv_data = $1; }
and this line:
DV_DATA => $dv_data

This line is wrong:

$webpage =~ s/\'\//\"$base_address\//smig;
because of the quote mismatch. (Also, only the g flag is actually needed on this statement.)

You might want something like:

$webpage =~ s!(=['"])/!$1$base_address/!g;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2024-04-18 11:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found