Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Secure login (https + Certificate) using Perl

by Cody Pendant (Prior)
on Oct 14, 2007 at 07:21 UTC ( [id://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

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://644713]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found