Results 1 to 8 of 8

Thread: CGI and VB - Getting CGI Results

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2000
    Location
    Temecula
    Posts
    36

    Red face

    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

  2. #2
    Fanatic Member
    Join Date
    Jul 2000
    Location
    Manchester NH
    Posts
    833
    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!]

  3. #3

    Thread Starter
    Member
    Join Date
    Jul 2000
    Location
    Temecula
    Posts
    36
    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

  4. #4
    Lively Member
    Join Date
    May 1999
    Location
    Singapore
    Posts
    116
    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



  5. #5

    Thread Starter
    Member
    Join Date
    Jul 2000
    Location
    Temecula
    Posts
    36
    the server is *nix );
    I only have cgi-access
    -Chris

  6. #6
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    =/ 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

    Dim

  7. #7

    Thread Starter
    Member
    Join Date
    Jul 2000
    Location
    Temecula
    Posts
    36
    Thanks (:

    Now I am considering using the IRC protocol (*ie napster)
    Does anyone know of any VB irc clients?
    -Chris

  8. #8
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    http://www.planetsourcecode.com/vb/s...t=Alphabetical
    Has quite a few examples of irc clients.

    Gl,
    D!m
    Dim

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width