Find appropriate series of HTTP calls doing the reboot and then implement them with Qt using QNetworkAccessManager or QWebPage.
Find appropriate series of HTTP calls doing the reboot and then implement them with Qt using QNetworkAccessManager or QWebPage.
Dear Wysota,
Thank you for your reply, that was what i did , but i couldnot find a way to execute javascript of a HTML page, since i cannot call the reboot directly , and it has to be done through javascript function in a HTML page.
could you please give me an example or direct me in the right path
Thank you very much.
Unix is simple. It just takes a genius to understand its simplicity. – Dennis Ritchie
The script invokes some http call. Find that call and call it manually (after you login to the router, of course). Firebug/wireshark will help you find that call.
would it be same HTTP call in case i want to change username and password too ?
i am trying to write an application to manage my router.
its quite hard to analyse the javascripts , and i preferred to call javascript function instead of going through all that hassle
Thankx once again![]()
Unix is simple. It just takes a genius to understand its simplicity. – Dennis Ritchie
Not the same but similar, yes.
You can use QWebPage to traverse the page and call the scripts, that's not a problem. However every operation will take much longer then and overall the code you need to write will be much more complex. It's really easier to launch firebug in firefox or use chrome to monitor outgoing http traffic to your router. You will then see what requests a particular call invokes. Then it's just a matter of reproducing those calls.its quite hard to analyse the javascripts , and i preferred to call javascript function instead of going through all that hassle![]()
Dear Wysota,
Thank you very much for your reply, i managed to find a invoke calls by monitoring HTTP request using wireshark as you recommended.
and now i can send request using QHttp to my router.
Thank you very much for all your help![]()
Unix is simple. It just takes a genius to understand its simplicity. – Dennis Ritchie
Bookmarks