shlomikalfa Posted December 14, 2007 Share Posted December 14, 2007 i want to make a program which will 'post' to my router a reconnection, do u know of any such way ? i mean i need to know how do one posts a username/password credentials to the router and then how to post a reconnection command... i know it's possible just don't know how to do it exactly since i don't know how does the 'http post' command works completely.... any lead will be appreciated - thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/81703-solved-please-help-need-to-know-how-to-post-to-my-router/ Share on other sites More sharing options...
shlomikalfa Posted December 14, 2007 Author Share Posted December 14, 2007 since i can't edit i will reply... <html> <head> <META name="description" content="WGR624"> <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <META http-equiv="Pragma" content="no-cache"> <META HTTP-equiv="Cache-Control" content="no-cache"> <title>router form</title> <link rel="stylesheet" href="form.css"> <script language="javascript" type="text/javascript"> <!-- hide script from old browsers function selHelpFile(helpitem) { if(document.forms[0].loginreq[0].checked) loadhelp('BAS_ether',helpitem) else loadhelp('BAS_pppoe',helpitem) } function doTypeChange( newIndex ) { var cf = document.forms[0]; var wan_proto = cf.wan_proto.value; if (newIndex == 0) { parent.basicbuttom.location.href = "BAS_ether.htm"; } else if (newIndex == 1) { if (wan_proto == "pptp") parent.basicbuttom.location.href = "BAS_pptp.htm"; else if (wan_proto == "bpa") parent.basicbuttom.location.href = "BAS_bpa.htm"; else parent.basicbuttom.location.href = "BAS_pppoe.htm"; } } function loadhelp(fname,anchname) { if ((loadhelp.arguments.length == 1 ) || (anchname == "" )) top.helpframe.location.href=fname+"_h.htm"; else top.helpframe.location.href=fname+"_h.htm#" + anchname; } function loadSettings() { var cf = document.forms[0]; var wan_proto = cf.wan_proto.value; if (wan_proto == "pppoe" || wan_proto == "pptp" || wan_proto == "bpa") { cf.loginreq[0].checked = true; } else { cf.loginreq[1].checked = true; } } //--> </script> </head> <body bgcolor="#ffffff" onload="loadSettings();parent.checkType(document.forms[0].wan_proto.value);" onResize="if(document.layers)parent.checkType(document.forms[0].wan_proto.value)"> <form name="basic" method="POST" action="basictop.cgi"> <table border="0" cellpadding="0" cellspacing="3" width="100%"> <tr> <td colspan="2"><h1>Basic Settings</H1></td> </tr> <tr> <!-- RULE --> <td colspan="2" background="liteblue.gif" height="12"> </td> </tr> <tr> <td colspan="2"> <p><a href="javascript:selHelpFile('question')" tabindex="-1"><b>Does Your Internet Connection Require A Login?</b></a></p></td> </tr> <tr> <td colspan="2"><input type="radio" name="loginreq" value="pppoe" onClick="doTypeChange(1)"> <a href="javascript:selHelpFile('question')" tabindex="-1">Yes</a></td> </tr> <tr> <td colspan="2"><input type="radio" checked name="loginreq" value="dhcp" onClick="doTypeChange(0)"> <a href="javascript:selHelpFile('question')" tabindex="-1">No</a></td> </tr> <tr> <!-- RULE --> <td colspan="2" background="liteblue.gif" height="12"> </td> </tr> </table> <INPUT name=wan_proto type=hidden value= "pppoe"> </form> <p></p> </body> </html> my routers first page. Quote Link to comment https://forums.phpfreaks.com/topic/81703-solved-please-help-need-to-know-how-to-post-to-my-router/#findComment-414977 Share on other sites More sharing options...
phpQuestioner Posted December 14, 2007 Share Posted December 14, 2007 wouldn't you need to ask this type of question on a network forum? this is a html help forum; not a networking help forum. Quote Link to comment https://forums.phpfreaks.com/topic/81703-solved-please-help-need-to-know-how-to-post-to-my-router/#findComment-415097 Share on other sites More sharing options...
shlomikalfa Posted December 15, 2007 Author Share Posted December 15, 2007 Well since the 'Posting' method is HTTP1.1 method i thought i should belong here, but i'll see if i'll get some better results there as well... BAH! Quote Link to comment https://forums.phpfreaks.com/topic/81703-solved-please-help-need-to-know-how-to-post-to-my-router/#findComment-415529 Share on other sites More sharing options...
phpQuestioner Posted December 16, 2007 Share Posted December 16, 2007 good luck with that guy - BAH to you too.......... Quote Link to comment https://forums.phpfreaks.com/topic/81703-solved-please-help-need-to-know-how-to-post-to-my-router/#findComment-415983 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.