WEB CGI interface

new topic     » topic index » view thread      » older message » newer message

At 07:26 PM 3/22/98 -0400, Daniel Berstein wrote:

>The other day I tried to make a small CGI with Euphoria (using OmniHTTP
>server for Windows 95). It failed. Why? Because I couldn't make the CGI
>return it's output to the browser (or server). Someone told me the trick was
>sending the output stream to STDOUT... but didn't work. Does anyone knows
>how a CGI sends output?

You also may want to look at Website 1.1 server that is available on most
CD's that accompany web programming books. I have a great book from WAITE
GROUP PRESS call "WEB DATABASE Construction Kit".

Website, and many other servers, rely on a text file inteface that sends
the cgi data as a parameter to the CGI program it calls.  Along with the
command line parameter, some other control files are built to indicate
source and destination of response. Then, the cgi program creates it's
response html file in a specified file name which the WEB server will read
once the CGI program has terminated. The Website, and others, don't care
about the program that it interfaces with. It just expects to give and
receive the textual interface as defined.

You MUST look at one of these books! I bought mine at a Half-Price Books
for $14.95. So, it's not a large investment to just determine the interface.

DISCLAIMER: I haven't tried any of these servers with any thing other than VB.

--[ Joe Phillips, Sytems Analyst
--[ Texas Wesleyan University     817-531-4444
--[
--[  "The tongue of the just is as choice silver:
--[   the heart of the wicked is little worth."  Proverbs 10:20

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu