|
-
Jul 31st, 2000, 05:21 AM
#1
Thread Starter
Member
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
-
Jul 31st, 2000, 08:45 AM
#2
Fanatic Member
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.
Kurt Simons
[I know I'm a hack but my clients don't!]
-
Jul 31st, 2000, 08:58 PM
#3
Thread Starter
Member
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
-
Aug 1st, 2000, 03:43 AM
#4
Lively Member
if the server is a win32 server that supports vb, then you can actually use vb to write the cgi - script
YC Sim
Teenage Programmer
UIN 37903254
-
Aug 1st, 2000, 04:05 AM
#5
Thread Starter
Member
the server is *nix );
I only have cgi-access
-Chris
-
Aug 1st, 2000, 04:10 AM
#6
Fanatic Member
=/ 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
-
Aug 1st, 2000, 04:15 AM
#7
Thread Starter
Member
Thanks (:
Now I am considering using the IRC protocol (*ie napster)
Does anyone know of any VB irc clients?
-Chris
-
Aug 1st, 2000, 05:23 AM
#8
Fanatic Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|