Thread: [Reconnect working] Netgear Router N300 DGN2200v3
View Single Post
  #8  
Old 04.08.2012, 07:34
LordOfThunder
Guest
 
Posts: n/a
Default

Hey,

Thank you very much for helping me. With the last script the disconnect finally worked. At first the reconnect didn't work again but after I put in a WAIT-Step it now works. Here's the final script:

Code:
[[[HSRC]]]
[[[STEP]]]
[[[REQUEST]]]
GET / HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%
[[[/REQUEST]]]
[[[/STEP]]]

[[[STEP]]]
[[[REQUEST]]]
GET /RST_st_poe.htm HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%

[[[/REQUEST]]]
[[[PARSE]]]
num:setup.cgi.id=([A-Z-a-z0-9]+)
[[[/PARSE]]]
[[[/STEP]]]

[[[STEP]]]
[[[REQUEST]]]
POST /setup.cgi?id=%%%num%%% HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%

todo=disconnect&this_file=RST_st_poe.htm&next_file=RST_st_poe.htm&SID=
[[[/REQUEST]]]
[[[/STEP]]]

[[[STEP]]]
        [[[WAIT seconds="10"/]]]
[[[/STEP]]]

[[[STEP]]]
[[[REQUEST]]]
GET /RST_st_poe.htm HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%

[[[/REQUEST]]]
[[[PARSE]]]
num:setup.cgi.id=([A-Z-a-z0-9]+)
[[[/PARSE]]]
[[[/STEP]]]

[[[STEP]]]
[[[REQUEST]]]
POST /setup.cgi?id=%%%num%%% HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%

todo=connect&this_file=RST_st_poe.htm&next_file=RST_st_poe.htm&SID=
[[[/REQUEST]]]
[[[/STEP]]]

[[[STEP]]]
[[[REQUEST]]]
GET /RST_st_poe.htm HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%

[[[/REQUEST]]]
[[[PARSE]]]
num:setup.cgi.id=([A-Z-a-z0-9]+)
[[[/PARSE]]]
[[[/STEP]]]

[[[STEP]]]
[[[REQUEST]]]
POST /setup.cgi?id=%%%num%%% HTTP/1.1
Host: %%%routerip%%%
Authorization: Basic %%%basicauth%%%

todo=connect&this_file=RST_st_poe.htm&next_file=RST_st_poe.htm&SID=
[[[/REQUEST]]]
[[[/STEP]]]

[[[/HSRC]]]
Thanks again for helping me!

bye
Lord
Reply With Quote