shlomikalfa Posted December 21, 2007 Share Posted December 21, 2007 the entire HTML page: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META NAME=Copyright CONTENT="Copyright (c) 2006 3Com Corporation. All Rights Reserved."> <META http-equiv=Content-Type content="text/html; charset=utf-8"> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <TITLE>System Tools - Restart </TITLE> <!-- External JavaScript file implementing Help popup window --> <link rel="stylesheet" href="main.css" type="text/css"> <SCRIPT src="helpscript.js"></SCRIPT> <script src="javafunction.js"></script> <SCRIPT language=JavaScript><!-- function GURL(x){location=x} function makeSure() { ret = false; statusLineYBold("Waiting for User Confirmation"); if (confirm("The system is about to shut down.\n Press OK to continue.")) { statusLineYBold("Requesting information from the Router"); GURL('reboot_nocommit.htm'); ret=true; } else { statusLineMessage('The changed has been saved to the temporary buffer.'); ret=false; } return ret; //statusLineMessage('The changed has been saved to the temporary buffer.'); } //--> </SCRIPT> </HEAD> <BODY bgColor=#99cccc leftMargin=0 topMargin=0 MARGINWIDTH="0" MARGINHEIGHT="0" BORDER="0" onload="statusLineBold('The changed has been saved to the temporary buffer.')"> <!-- banner --> <table width=100% height=75 border=0 cellspacing=0 cellpadding=5> <tr><td class=subtitle valign=bottom background=sky_bg.gif> <IMG src="bannertxt.gif"><BR> <IMG src="pixel.gif" border=0 width=35 height=1>System Tools </td></tr></table> <!-- tabs --> <table height=18 border=0 cellspacing=0 cellpadding=0> <tr> <td bgcolor=#99cccc align=left valign=top width=18><IMG src=sky_tableftcurve.gif border=0 ></TD> <td bgcolor=#99cccc align=middle valign=center><A HREF=systools_restart.htm class=select>Restart</TD> <td bgcolor=#99cccc align=right valign=top width=18><IMG src=sky_tabrightcurve.gif border=0></TD> <td bgcolor=#669999 align=left valign=top width=18><IMG src=sky_tableftcurve.gif border=0 ></TD> <td bgcolor=#669999 align=middle valign=center><A HREF=systools_timezone.htm class=unselect>Time Zone</TD> <td bgcolor=#669999 align=right valign=top width=18><IMG src=sky_tabrightcurve.gif border=0></TD> <td bgcolor=#669999 align=left valign=top width=18><IMG src=sky_tableftcurve.gif border=0 ></TD> <td bgcolor=#669999 align=middle valign=center><A HREF=restore.htm class=unselect>Configuration</TD> <td bgcolor=#669999 align=right valign=top width=18><IMG src=sky_tabrightcurve.gif border=0></TD> <td bgcolor=#669999 align=left valign=top width=18><IMG src=sky_tableftcurve.gif border=0 ></TD> <td bgcolor=#669999 align=middle valign=center><A HREF=vd_upld.htm class=unselect>Upgrade</TD> <td bgcolor=#669999 align=right valign=top width=18><IMG src=sky_tabrightcurve.gif border=0></TD> <td width=1000 background=sky_tabbg.gif align=middle valign=center> </TD> </tr></table> <!-- start content --> <table border=0> <tr> <td colSpan=3><IMG height=10 src="pixel.gif" border=0></td></tr> <tr> <form method="post" action="reboot.htm" name="RebootForm" > <input type="hidden" name="do_submit" value=""> <input type="hidden" name="page" value="systools_restart"> <input type="hidden" name="press" value="0"> <td width=30> </td> <!-- content : data --> <td> <TABLE cellSpacing=2 cellPadding=3 border=0> <TBODY> <TR> <TD class=titleCell colspan=2>Restart</TD></TR> <TR> <TD class=textCellC colspan=2> <TABLE cellPadding=10 border=0 width=100%> <TR><TD class=textCellC> Please press the button to restart the Router<BR><BR> <INPUT class=button type=button value="Restart the Router..." onclick="javascript:makeSure();"><BR><BR> <HR> <b>Note:</b> Users will be disconnected from the Internet while the Router is restarting. </TD></TR></TABLE> </TD> </TR> </TBODY></TABLE> </td> <!-- content: buttons --> <td width=100 align=right valign=top> <p> </p> <p><INPUT class=actButton type=button value=Help onclick="popupHelp('h_restart.htm')"> </p> </td> </FORM> </tr></table> <!-- copyright --> <table width=100% height=1000 border=0 cellspacing=0 cellpadding=0> <TR><TD class="copyright" valign=bottom > Copyright (c) 2006 3Com Corporation. All Rights Reserved. </TD></TR></table> </BODY></HTML> It's the code of a router's reconnection page - 3com to be percise... i want to automate the process.... however when i try "POST"ing to the router it sends me a <HTML><HEAD><TITLE>501 Not Implemented</TITLE></HEAD> <BODY BGCOLOR="#cc9999"><H4>501 Not Implemented</H4> That method is not implemented. </BODY></HTML> as a reply... any idea what to do with it ?! PS. i'm running through google as i'm writing it... but i figured HACK... u want the real answer come to the real site [move]THANKS IN ADVANCE !!![/move] Quote Link to comment Share on other sites More sharing options...
mainewoods Posted December 23, 2007 Share Posted December 23, 2007 where are you running that page from? Try adding the routers ip# to the form action: <form method="post" action="http://routerIPnumber/reboot.htm" name="RebootForm" > Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.