Results 1 to 3 of 3

Thread: Web Server And VB-Created CGI-Scripts

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    NY, USA.
    Posts
    240

    Question

    Hi,
    Have you ever used a CGI-Script that was created in VB?

    I downloaded a web-server that was written using VB and when I tried run the executable CGI-Script it forces the file to downloaded instead of being executed through the user's browser [example http://127.0.0.1/hello.exe ]. On
    the other hand when I used the same executable CGI-Script
    with MS Personal Webserver it didn't force the user to
    download the "exe" file but instead it ran just like a normal "html" file. Why? Could some one explain? And also
    how could I implement the feature that allowed the file to
    be executed instead of downloaded?


    Note: The CGI-Script was compiled in to a exe file using VB.


    Omar
    [email protected]
    http://omar.caribwalk.com
    To God Be The Glory

    I see Tech People ...

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    NY, USA.
    Posts
    240
    Come on guys!
    Omar
    [email protected]
    http://omar.caribwalk.com
    To God Be The Glory

    I see Tech People ...

  3. #3
    Guest
    The server's supposed to check and see what header the file returns. You can set it to EXECUTE the file and RETURN the content of the file to the webserver, now this will not work if you don't have an HTML header which tells the browser to start showing HTML. Get it? OK I think not.

    a .cgi script can not be run unless it's associated with PERL. Once associated with PERL (for WEBSERVERS THAT SUPPORT CGI SCRIPTS *hint *hint) the webserver will know that it's supposed to direct the .cgi or .pl script to the perl interpreter which on the other hand RETURNS the content of the interpreted script.. which includes all the HTML stuff. PWS is set to execute scripts, if it's in CGI-BIN instead of being downloaded it'll be executed, but That's cause the server can SUPPORT executing the files, and knows how to return the content from the file to the web browser. To be able to do that, you need to know how to do it.. and i don't know how to do it.. but though may be some explanation of this might cheer you up?

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