On 21/11/12 01:21, Voytek Eymont wrote:
> wget 
> --post-data='username=name&password=password&_action_login=Login&_module=login&_template=login&_action=_login'
> --save-cookies=my-cookies --keep-session-cookies
> http://www.dom.tld/index.php
>
> that gets me 'index.php' saved, inside 'index.php' I have like:
>
> -----------
> <div class="pfbc-buttons">
> <input value="Accept" type="submit" onclick=" setAction(this.form,
> 'accept','0',null, '0'); " class="accept_btn"/>
> <input value="Reject" type="submit" onclick=" setAction(this.form,
> 'reject','0',null, '0'); " class="reject_btn"/>
> </div>
> -----------
>
> how do I push the 'Accept' button ?

It depends on what the javascript setAction() does.
You need to find out the function definition in either the page source or
one of the javascript files loaded from it.

FYI that web page won't work if you have javascript disabled (the server
won't
know if you pressed Accept or Reject).



Reply via email to