Jump to content

Live HTTP Headers with AutoIt?


Hyflex
 Share

Recommended Posts

Ok, I'm not quite sure if AutoIt can help with this.

Basically, I want the script at 11:50 all the way up to 12:00 to send the message:

ToolTip("Router Reconnect at 12:00" & @CRLF & "Please Wait...", 1, 1, "Router Reconnecting", 1)

Then at 12:00 for the script to send a header to the internet (disconnects) but it will need to login...

With headers username is admin and password is admin in LiveHeader form it is:

Authorization: Basic YWRtaW46YWRtaW4=

I then need it to check my external IP and record this...

Then do the header:

GET /apply.cgi?submit_button=Status_Router&submit_type=disconnect&change_action=gozila_cgi&wan_proto=dhcp

Wait until it can contact/ping 192.168.1.1 and when it can for it to do:

GET /apply.cgi?submit_button=Status_Router&submit_type=connect&change_action=gozila_cgi&wan_proto=dhcp

and then I can add the rest of the stuff I need to add.

For the program "JDownloader" it has a nice version but the script isn't perfect for me and I want a stand alone script not jdownloader...

[[[HSRC]]]

[[[sTEP]]]

[[[REQUEST]]]

AUTH /? HTTP/1.1

Host: %%%routerip%%%

Authorization: Basic %%%basicauth%%%

[[[/REQUEST]]]

[[[/sTEP]]]

[[[sTEP]]]

[[[REQUEST]]]

GET /apply.cgi?submit_button=Status&submit_type=Disconnect&change_action=gozila_cgi&wan_proto=pppoe HTTP/1.1

Host: %%%routerip%%%

[[[/REQUEST]]]

[[[/sTEP]]]

[[[sTEP]]]

[[[REQUEST]]]

GET /apply.cgi?submit_button=Status&submit_type=Connect&change_action=gozila_cgi&wan_proto=pppoe HTTP/1.1

Host: %%%routerip%%%

[[[/REQUEST]]]

[[[/sTEP]]]

[[[/HSRC]]]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...