Thread: [Script request] Speedport W724V - Reconnect?
View Single Post
  #64  
Old 06.03.2016, 20:25
coalado's Avatar
coalado coalado is offline
JD Manager
 
Join Date: Feb 2009
Posts: 1,983
Default

Speedport W724v Typ C

Code:
[[[HSRC]]]
    [[[STEP]]]
        [[[REQUEST]]]
        POST /data/Login.json HTTP/1.1
        Host: %%%host%%%

password=%%%pass%%%&showpw=0
        [[[/REQUEST]]]

    [[[/STEP]]]


    [[[STEP]]]
        [[[REQUEST]]]
        GET /html/content/overview/index.html?lang=en HTTP/1.1
        Host: %%%host%%%
        [[[/REQUEST]]]

    [[[/STEP]]]

 [[[STEP]]]
        [[[REQUEST]]]
        GET /html/content/overview/index.html?lang=en HTTP/1.1
        Host: %%%host%%%
        [[[/REQUEST]]]

    [[[/STEP]]]

 [[[STEP]]]
        [[[REQUEST]]]
        GET /html/content/internet/connection.html?lang=en HTTP/1.1
        Host: %%%host%%%
        [[[/REQUEST]]]
		[[[RESPONSE keys="sessionid"]]]
<input type="hidden" name="sessionid" value="(.*?)"/>
[[[/RESPONSE]]]

    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        POST /data/Connect.json HTTP/1.1
        Host: %%%host%%%

req_connect=disabled&sessionid=%%%sessionid%%%
        [[[/REQUEST]]]

    [[[/STEP]]]
 [[[STEP]]]
[[[WAIT seconds="30"/]]]
  [[[/STEP]]]
    [[[STEP]]]
        [[[REQUEST]]]
        POST /data/Connect.json HTTP/1.1
        Host: %%%host%%%

req_connect=online&sessionid=%%%sessionid%%%
        [[[/REQUEST]]]

    [[[/STEP]]]
[[[/HSRC]]]

if a username is required in the webinterface:

Code:
[[[HSRC]]]
    [[[STEP]]]
        [[[REQUEST]]]
        POST /data/Login.json HTTP/1.1
        Host: %%%host%%%

password=%%%pass%%%&showpw=0
        [[[/REQUEST]]]

    [[[/STEP]]]


    [[[STEP]]]
        [[[REQUEST]]]
        GET /html/content/overview/index.html?lang=en HTTP/1.1
        Host: %%%host%%%
        [[[/REQUEST]]]

    [[[/STEP]]]

 [[[STEP]]]
        [[[REQUEST]]]
        GET /html/content/overview/index.html?lang=en HTTP/1.1
        Host: %%%host%%%
        [[[/REQUEST]]]

    [[[/STEP]]]

 [[[STEP]]]
        [[[REQUEST]]]
        GET /html/content/internet/connection.html?lang=en HTTP/1.1
        Host: %%%host%%%
        [[[/REQUEST]]]
		[[[RESPONSE keys="sessionid"]]]
<input type="hidden" name="sessionid" value="(.*?)"/>
[[[/RESPONSE]]]

    [[[/STEP]]]

    [[[STEP]]]
        [[[REQUEST]]]
        POST /data/Connect.json HTTP/1.1
        Host: %%%host%%%

req_connect=disabled&sessionid=%%%sessionid%%%
        [[[/REQUEST]]]

    [[[/STEP]]]
 [[[STEP]]]
[[[WAIT seconds="30"/]]]
  [[[/STEP]]]
    [[[STEP]]]
        [[[REQUEST]]]
        POST /data/Connect.json HTTP/1.1
        Host: %%%host%%%

req_connect=online&sessionid=%%%sessionid%%%
        [[[/REQUEST]]]

    [[[/STEP]]]
[[[/HSRC]]]
__________________

Last edited by coalado; 10.03.2016 at 15:06.
Reply With Quote