Jump to content

[SOLVED] please help, need to know how to 'Post' to my router.


shlomikalfa

Recommended Posts

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.

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.