1. Local CGI & Euphoria
- Posted by Buddy Hyllberg <budmeister1 at JUNO.COM> May 30, 1998
- 704 views
Hi all, I've been tinkering around with PERL & CGI lately, and I know that Euphoria would be great for CGI too. So I went to work trying to get a HTTP server to work locally, so I could use CGI scripting with Euphoria. I setup the WinHttpd package, along with a TCP/IP package so WinHttpd would work (it needed a few DLLs). The HTTP server worked, but just stayed idle & wouldn't do anything. The way I understand that CGI works is that to the script, the client is STDOUT & the script is STDIN (and that's how the post method works, by putting input in STDIN to the script instead of in a query string). <---STDIN---- script (server) client (browser) ---STDOUT---> So my questions are: 1. is there a way to redirect STDIN & STDOUT globally? 2. can you make an HTTP server work locally? 3. do you have to somehow enable TCP/IP locally for it to work? Thanks alot everyone! ----->Buddy budmeister1 at juno.com _____________________________________________________________________ You don't need to buy Internet access to use free Internet e-mail. Get completely free e-mail from Juno at http://www.juno.com Or call Juno at (800) 654-JUNO [654-5866]
2. Re: Local CGI & Euphoria
- Posted by Irv <irv at ELLIJAY.COM> Jun 01, 1998
- 758 views
At 01:41 PM 5/30/98 EDT, Buddy Hyllberg wrote: >I've been tinkering around with PERL & CGI lately, and I know that >Euphoria would be great for CGI too. So I went to work trying to get a >HTTP server to work locally, so I could use CGI scripting with Euphoria. >I setup the WinHttpd package, along with a TCP/IP package ... Buddy: See my Euphoria CGI tutorial (such as it is) on my web page. It answers your questions below - with sample programs and all. http://www.mindspring.com/~mountains Regards, Irv >The HTTP server worked, but just stayed idle & wouldn't do anything. >The way I understand that CGI works is that to the script, the client is >STDOUT & the script is STDIN (and that's how the post method works, by >putting input in STDIN to the script instead of in a query string). > > > <---STDIN---- >script (server) client (browser) > ---STDOUT---> > > >So my questions are: > > 1. is there a way to redirect STDIN & STDOUT globally? > 2. can you make an HTTP server work locally? > 3. do you have to somehow enable TCP/IP locally for it to > work? >>