I am totaly new to perl so please bear with me. What I am looking for is a way for my linux box to test/ping my connection at a set interval, and if it doesnt recieve a response to send a POST to my router that will tell it to reboot.
The code for the web page that launches the reboot is;
<FORM METHOD=POST ACTION="/reboot.html/set">
<INPUT TYPE=submit NAME=reboot VALUE="Reboot">
Are you sure? <INPUT TYPE=radio NAME=confirm VALUE=Yes >Yes
<INPUT TYPE=radio NAME=confirm VALUE=No CHECKED>No
Any help will be much appreciated.