[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] fetching pages, clicking buttons
From: |
Ángel González |
Subject: |
Re: [Bug-wget] fetching pages, clicking buttons |
Date: |
Wed, 21 Nov 2012 18:35:25 +0100 |
User-agent: |
Thunderbird |
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).