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!