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

Re: problem loggin into pm

by davidrw (Prior)
on Jan 08, 2008 at 13:17 UTC ( #661079=note: print w/replies, xml ) Need Help??

in reply to problem loggin into pm

Make it:
passwd => substr($pass,0,8),
And it should work.

I d/l'd your script and ran into the same frustration ... Everything looked good compared to mech-dump '' and browser/ViewScource ... tried removing the cookie jar, changing the agent, etc.

Finally went to Live HTTP headers in firefox to take the POST'd data to manually create a POST w/LWP (instead of mech), and then noticed that my password was passed as 12345678 when it's really 123456789 ... Checked the html source again and there is a maxlength=8 for the password field ...

/me goes off to research now how to recognize that in WWW::Mechanize ...
Update: See RFC: Where to patch to enforce maxlength in Mech? for thoughts on possibly adding a feature/patch for it.

Replies are listed 'Best First'.
Re^2: problem loggin into pm
by holli (Abbot) on Jan 08, 2008 at 13:44 UTC
    Many thanks!
    So the last 2 digits of my password are actually ignored, eh? That bugs me a little, because without them my password is an ordinary word, prone to dictionary attacks. I wonder what's the reason for this oviously arbitrary limitation.

    holli, /regexed monk/

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2021-10-18 21:00 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (75 votes). Check out past polls.