-
I am implementing a "buddy list" program where people can see others online - I have a webhost that only supports CGI. The basic plan for this program is as follows:
A user will go online, run the program and login - this sends the login data to a cgi script - My question, how can VB get the result back from the cgi script?
Now, after the login, the VB program tells the cgi script to add the user name to a user text file.
Now all other people using this software will download a list of all users online and parse the list for buddies on the list ( The data is also downloaded because the VB program needs to show a list of all users online)
Now - is there any way to implement this better or faster? I do have an accoutn on ewebcity.com - if I must do this in ASP, but I really want to do it with CGI and Perl (i am currently learning Perl)
Can anyone please help me - I need to get and decode the data sent back after a POST or GET to a cgi script. I am writing the CGI myself.
-Chris
-
This is not my subject but couldn't you just create a file on the server via perl such as logged.txt or logged.html and then have you vb program request it from the server the same as any other file.
-
Ok - I have a cgi script that accepts two parameters, a login and password (this can be either get or post) -OK if i submit the cgi script values with vb, how can I have vb get the response? (the cgi script will generate a page with either 1 or 0 if the login was correct)
-Chris
-
if the server is a win32 server that supports vb, then you can actually use vb to write the cgi - script
-
the server is *nix );
I only have cgi-access
-Chris
-
=/ i was going to suggest using php and mysql, but since you have restricted access...Use the inet control and Open the url for the "access varifictaion" page, and see if the page contains a "0":
Code:
'Something like
Text1.Visible = False
Text1.Text = Inet1.OpenURL("http://www.me.com/cgivar.cgi", icString)
If Text1.Text = "0" Then
MsgBox "Vb recienved an invalid pass or login varification"
Else
MsgBox "User Loged in"
End If
Hope that helps,
D!m
-
Thanks (:
Now I am considering using the IRC protocol (*ie napster)
Does anyone know of any VB irc clients?
-Chris
-