login to a website within a stack
Posted: Sat Apr 07, 2012 2:34 pm
hi
i've making a stack to access a website that asks to log in
i'm stripped out all the unnecessary code from the login page and that's it:
i've saved this code as text document with simpletext, open the file with safari, click the submit button and log in the website in a hurry
now, i've to do this within a stack, with username and password collected from the user with ask dialogs
i guess i can do this in a "url string" way, like
...and so on with the other parameters from the form, but it doesn't work
i'm not sure if it isn't working because of me and a wrong url string or because of the site, on this case i have to speak with the webmaster
the other way, i know how to put html code in a script but i don't know to "click a button"...
what do you all out there thinks about?
thanks!
i've making a stack to access a website that asks to log in
i'm stripped out all the unnecessary code from the login page and that's it:
Code: Select all
<!DOCTYPE HTML>
<form action="http://www.(thesite).it/index.php?option=com_comprofiler&task=login" method="post"/>
<input type="hidden" name="username" value ="(theuser)"/>
<input type="hidden" name="passwd" value="(thepass)"/>
<input type="hidden" name="op2" value="login" />
<input type="hidden" name="lang" value="italian" />
<input type="hidden" name="force_session" value="1" />
<input type="hidden" name="return" value="B:aHR0cDovL3d3dy5lcm94ZS5pdC8=" />
<input type="hidden" name="message" value="0" />
<input type="hidden" name="loginfrom" value="loginform" />
<input type="hidden" name="cbsecuritym3" value="cbm_61edf114_6b35641b_39682c08b1fa208ab4cc314cf29fd720" />
<input type="hidden" name="j825a551ae288257abb759692321af56c" value="1" />
<input type="submit" name="Submit"value="Accesso" /></html>
now, i've to do this within a stack, with username and password collected from the user with ask dialogs
i guess i can do this in a "url string" way, like
Code: Select all
http://www.***********.it/index.php?option=com_comprofiler&task=login&username=********&passwd=2**********
i'm not sure if it isn't working because of me and a wrong url string or because of the site, on this case i have to speak with the webmaster
the other way, i know how to put html code in a script but i don't know to "click a button"...
what do you all out there thinks about?
thanks!