Thread: [Reconnect working] Netgear Router N300 DGN2200v3
View Single Post
  #10  
Old 04.09.2012, 03:22
johnny20
Guest
 
Posts: n/a
Thumbs up

Just bought the same model, i.e. the Netgear DGN2200v3. Was looking around for a reconnect script desperately but nothing worked. Tried all the scripts for the other Netgear models, but no go. Tried searching for the model here, but nothing matched as well. It was purely by chance that I found this thread. Why? Because the router's model is spelt wrong! It is Netgear DGN2200v3, not Netgear DNG2200v3! No wonder the forum search failed to find this thread!

@Mods: Please edit the model name above to the correct one, so that others searching for this don't needlessly suffer like I did.

The final script that works 100% of the time with this model, thanks to Freeloader of course, is as below (with minor edits by me to remove the extra connect at the end which is not required for sure):

Code:
[[[HSRC]]]

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

[[[/REQUEST]]]
[[[PARSE]]]
num:setup.cgi.id=([A-Za-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
[[[/REQUEST]]]
[[[/STEP]]]

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

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

[[[/REQUEST]]]
[[[PARSE]]]
num:setup.cgi.id=([A-Za-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
[[[/REQUEST]]]
[[[/STEP]]]

[[[/HSRC]]]

To all HTTP Live header script ninjas, if the script can be further reduced in size or made to work faster without loss of functionality, please post here and let us know how.

@Devs: Hope you will include this reconnect script in JD2's in-built database!
Reply With Quote