We have to login to a http page so that I can surf the net. But, that login page also requires me to keep that page open which is very irritating. The page have javascript that checks if the page is loaded every 180 seconds, it its not loaded, I am logged out.
I want to simulate a browser using a programming language like python or using curl or anything so that I am not forced to keep the webpage open.
How can I do that? I have uploaded the source code of the webpages of login_page, javascript and ajax scripts used.
I am not actually sure as to how it is being accomplished so I dont know how to simulate it. Please note the sendLiveRequest function in javascipt script.
AJAX Script -> http://sprunge.us/gMBR?js
JAVASCRIPT -> http://sprunge.us/gPeL?js
mainpage.html -> http://sprunge.us/MFLM?html
I work on linux so please provide solutions regarding linux platform or atleast give idea of whats actually being used here and how should I proceed.