--
--
The website for the club is http://wncc-iitb.org/
To post to this group, send email to wncc...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "Web and Coding Club IIT Bombay" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wncc_iitb+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Linux solution, with theory of operation:
1. When to log in? When the IP address changes.
2. How to remain logged in? Keep using the internet, or login every 15 minutes.
#1 is solved on Linux using NetworkManager's interfaces. One can either listen for the 'connected to a network!' event on dbus, or one can tell NM itself to execute a script when connected. Personally, I prefer the latter on personal systems and the former on multiuser systems.
NetworkManager has a nifty feature, called dispatchers, which executes something when a specific network event happens. It's not as fine-grained as the events dbus, but for our purposes, it will suffice. Check out the manual: http://linux.die.net/man/8/networkmanager
I fire a script upon dispatched events 'up' and 'dhcp4-change' that logs me in to internet.iitb. It's a simple enough one liner, with the following contents:
curl --noproxy '*' https://internet.iitb.ac.in/index.php -d 'uname=<YOUR-USERNAME>&passwd=<YOUR-PASSWORD>&button=Login'
--
--
The website for the club is http://wncc-iitb.org/
To post to this group, send email to wncc...@googlegroups.com
---
You received this message because you are subscribed to the Google Groups "Web and Coding Club IIT Bombay" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wncc_iitb+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
@Sourabh: when I first tried that (more than a year ago), it didn't work. Apparently the form processor at internet.iitb also expected the submit button in the POST data.