Actiontec GT701D

Article Details
URL: /help/tickets/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=118
Article ID: 118
Created On: 08 Oct 2010 4:16 PM

Answer ---------------- VARIATION #1 ------------ cut below this line -----------------
hs=new HTTPScript();
hs.Data="getpage=../html/status_hide.html&var:opt=0&logic:command/kill_ppp=&connection0:pppoe:command/stop=1";
hs.Referer="http://192.168.0.1/cgi-bin/webcm?getpage=../html/status_hide.html&var:conname=connection0&var:contype=pppoe";
hs.POST("http://192.168.0.1/cgi-bin/webcm");

Wait(1000);

hs.Data="getpage=../html/status_hide.html&var:opt=1&connection0:pppoe:command/start=1";
hs.Referer="http://192.168.0.1/cgi-bin/webcm";
hs.POST("http://192.168.0.1/cgi-bin/webcm");

Wait(1000);

hs.Data="getpage=../html/status_hide.html&var:opt=1";
hs.Referer="http://192.168.0.1/cgi-bin/webcm";
hs.POST("http://192.168.0.1/cgi-bin/webcm");

return true;


---------------- VARIATION #2 ------------ cut below this line -----------------
hs=new HTTPScript("admin", "admin");
hs.ForceAuthHeader=true;
hs.Data="getpage=../html/status_hide.html&var:opt=0&connection0:dhcpc:command/release=1";
hs.Referer="http://192.168.0.1/cgi-bin/webcm?getpage=../html/status_hide.html&var:conname=connection0&var:contype=dhcpc";
hs.POST("http://192.168.0.1/cgi-bin/webcm");

Wait(1000);

hs.Data="getpage=../html/status_hide.html&var:opt=1&connection0:dhcpc:command/renew=1";
hs.Referer="http://192.168.0.1/cgi-bin/webcm";
hs.POST("http://192.168.0.1/cgi-bin/webcm");

Wait(1000);

hs.Data="getpage=../html/status_hide.html&var:opt=1";
hs.Referer="http://192.168.0.1/cgi-bin/webcm";
hs.POST("http://192.168.0.1/cgi-bin/webcm");

return true;