We have a Netgear FS526T router. It displays basic stats on all the ports, however I would like to write a program that will keep a log of the stats on a daily basis. Without keeping daily logs there is no way to compare the data transfer from day to day. I was hoping to write a program in Java and to have it parse the statistics page and create a new log file on the computer running the program.
The problem that I foresee is that the router uses a browser login to see the statistics. I was hoping to be able to have the java program call up the login script like "cgi_login?passwd=password", and the passwd field is the name of the field in the login form. The login form doesn't have an action though, so I don't know how i can call the processing script to actually login from my java program. the form is declared as "<form name=login method=POST>". I'm assumming it probably uses some sort of cgi script that is perhaps built into the login page.
Does anyone have any suggestions on how I could login without actually typing into the login form and clicking the submit button? Any ideas on how I can get it to process the variables in my uri?