Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Secure login (https + Certificate) using Perl

by Cody Pendant (Prior)
on Oct 14, 2007 at 07:21 UTC ( #644713=note: print w/ replies, xml ) Need Help??


in reply to Secure login (https + Certificate) using Perl

Why are you getting the hidden field value out of the form, then putting it back in? The whole point of WWW::Mechanize is you don't have to do stuff like that.

As to why it doesn't work, the answer is probably in the HTML you took out to show us the "shortened" form. Is there any JavaScript involved, for instance?



Nobody says perl looks like line-noise any more
kids today don't know what line-noise IS ...


Comment on Re: Secure login (https + Certificate) using Perl
Re^2: Secure login (https + Certificate) using Perl
by Finch (Initiate) on Oct 14, 2007 at 10:35 UTC
    Hi,

    thanks for your reply.
    How would I get the ADMIN-ID using WWW::Mechanize?

    And I SOLVED THE PROBLEM!!!
    It wasn't in the HTML I took out.
    I used 'LiveHTTPHeaders' to see what's realy being sent and received. That's when I noticed that the last character of my password is cut off.
    I ajusted my script, deleting the last character of my passwort and BANG! it works. :-)

    Finch.
      >How would I get the ADMIN-ID using WWW::Mechanize?

      You don't have to. The module handles hidden fields for you.



      Nobody says perl looks like line-noise any more
      kids today don't know what line-noise IS ...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2014-12-29 00:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (183 votes), past polls