cURL / Mailing Lists / curl-users / Single Mail

curl-users

curl, javascript, and form submission

From: P K <kap4lin_at_gmail.com>
Date: Mon, 2 Nov 2009 20:32:44 -0500

Hi,

Googling resulted in some information, but I wanted to clarify this
with the list here. My goal is this:

I've a router at home. I want to write a shell script (say, bash) to
enable or disable the Wireless on the router. Some essential parts of
the html code for the wireless settings page of the router follow:

1. Enable/Disable radio button:

 <div align="right">Wireless Radio :</div>
 <input name="WilessType" type="radio" value="1" checked> Enabled
 <input name="WilessType" type="radio" value="0"> Disabled

2. SSID:

 <div align="right">SSID : </div>
 <input type="text" name="wirelessESSID" value="myssid" maxlength="32">

3. Similarly, Passphrase and Confirm passphrase input boxes.

4. Finally, the "Apply" button is specified as:

<a href=javascript:send_request()><img
src="http://192.168.0.1/apply_p.jpg" width="51" height="52"
border="0"></a>

So, the question is: is it possible? If so, help me out ;) I can read
the scripts on the page and also the ones in its public.js file... So,
further information, if needed, can be provided.

Thanks in advance

-- 
Regards
PK
--------------------------------------
http://counter.li.org  #402424
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-11-03