[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] pushing button(s)
From: |
Micah Cowan |
Subject: |
Re: [Bug-wget] pushing button(s) |
Date: |
Thu, 15 Apr 2010 08:18:18 -0700 |
User-agent: |
Thunderbird 2.0.0.24 (X11/20100317) |
Voytek Eymont wrote:
> I've logged in to a web page with
>
> wget
> --post-data='user=xxx&pass=yyy&_action_login=Login&_module=login&_template=login&_action=_login'
> --save-cookies=my-cookies --keep-session-cookies
> http://domain.tld/main.htm
>
> I can get items that I want OK
>
> BUT, additionally, I also need to push button(s) on new items
>
> 'selected source' on buttons I wish to push has like:
>
> <input class="albttn_red" name="Accept" onclick="javascript: return
> Al_Click_Button(active_list, '21583679','page_generator', 'default');"
> value="Accept" title="Accept" type="button">
>
> I've tried:
>
> wget --post-data='Accept=Accept' --load-cookies=my-cookies
> --save-cookies=my-cookies --keep-session-cookies
> "http://domain.tld/main.htm?_module=active_list&_template=advanced"
Sorry, but wget has no way to deal with JavaScript. The best you can do
is reverse-engineer the JavaScript and try to emulate what a browser
would do, which requires you to be very familiar with JavaScript, HTML,
and possibly HTTP.
--
Micah J. Cowan
http://micah.cowan.name/