keep alive - The solution I used
Hey All,
This is the solution I used to solve my problem. It may not be the best way but it is the solution easiest to implement.
I studied the web page and I found the variables which were submitted (i.e. the username and password variables) and read into HTTP's POST command.
I downloaded netcat (publicly available at www.hideaway.net). One of netcat's functions is to send information to a specific server on a specific port.
I wrote a batch file to run netcat in the following way
nc servername 80 < datafile > resultfile
The batch file runs netcat which connects to port 80 on the server specified by servername and sends the information contained in datafle to the server. in my case, datafile was just a regular text file which contained a POST command. Netcat would also place whatever it received in return in a file. In this case, the file would be resultfile.
For the GUI, I used Visual Basic. Using the ShellExecute function, I call the batch file I wrote at intervals.
What I've explained is a simplified description of the program I am writing. The actual program will check whether the authentication is successful or not using the result file. It will also provide a simple encryption procedure for storing my username and password.
I hope this helps anyone else encountering a problem like myself.
Harold