20 Sep 2019 
Support Center » Knowledgebase » Scripts for DSL/Cable modems / routers » Netgear WNDR3700
 Netgear WNDR3700
Article function findAction(s) {
  m="action=\"";
  i=s.IndexOf(m);
  if (i==-1) return null;
  s=s.Substring(i+m.Length);
  i=s.IndexOf("\"");
  if (i==-1) return null;
  s=s.Substring(0, i);
  return s;
}

hs=new HTTPScript("admin", "buffet");
hs.ForceAuthHeader=true;
s=hs.GET("http://10.0.0.1/RST_conn_status.htm");
action=findAction(s);
hs.Data="submit_flag=connect_status&endis_connect=0";
s=hs.POST("http://10.0.0.1"+action);
Wait(1000);
s=hs.GET("http://10.0.0.1/RST_conn_status.htm");
action=findAction(s);
hs.Data="submit_flag=connect_status&endis_connect=3";
hs.POST("http://10.0.0.1"+action);
Wait(5000);
return true;


Article Details
Article ID: 143
Created On: 28 Dec 2010 7:07 AM

 This article was helpful  This article was not helpful

 Back
 Log in [Lost Password] 
E-mail:
Password:
Remember Me:
 
 Search
 Article Options
Home | Submit a Ticket | Knowledgebase | Troubleshooter
Language:

Help Desk Software by Kayako SupportSuite v3.70.02