Hello Very happy to see this new version of mechanize :) But I''ve got a problem with an old script that logs on a website, whitch dont work anymore. By taking a tcpdump, i saw that ''*'' characters containend in the password are encoded to their charcode (%2A) when posting the login form.. So the authentification fails. Any idea?? Thanks Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/mechanize-users/attachments/20110704/6f32960c/attachment.html>
I don''t think Mechanize should be escaping your strings if you aren''t telling it to. In any case, if it is, you can do this: require ''cgi'' Then CGI::unescape(my_login_string) before logging in. Lonny Eachus =========== On [Jul03], at 16:39 , Ghislain de Fresnoye wrote:> Hello > > Very happy to see this new version of mechanize :) > But I''ve got a problem with an old script that logs on a website, whitch dont work anymore. > By taking a tcpdump, i saw that ''*'' characters containend in the password are encoded to their charcode (%2A) when posting the login form.. > So the authentification fails. > > Any idea?? > > Thanks > Regards > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/mechanize-users/attachments/20110703/0e025114/attachment.html>
Thanks Lonny, I tried what do you suggested, but unfortunaly it did''nt work. But I achieved sending the good data with a simple post, so it''s ok for me... Regards 2011/7/4 Lonny Eachus <lonny6 at gmail.com>> > I don''t think Mechanize should be escaping your strings if you aren''t > telling it to. > > In any case, if it is, you can do this: > > require ''cgi'' > > > Then > > CGI::unescape(my_login_string) > > before logging in. > > > Lonny Eachus > ===========> > > On [Jul03], at 16:39 , Ghislain de Fresnoye wrote: > > Hello > > Very happy to see this new version of mechanize :) > But I''ve got a problem with an old script that logs on a website, whitch > dont work anymore. > By taking a tcpdump, i saw that ''*'' characters containend in the password > are encoded to their charcode (%2A) when posting the login form.. > So the authentification fails. > > Any idea?? > > Thanks > Regards > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users > > > > _______________________________________________ > Mechanize-users mailing list > Mechanize-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/mechanize-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/mechanize-users/attachments/20110705/701f2db9/attachment-0001.html>