Re: CGI info
- Posted by Daniel Berstein <daber at PAIR.COM> Mar 18, 1999
- 452 views
At 08:56 PM 17-03-1999 , you wrote: >Dan and others, are you familar with the POST request command in CGI. If >your running Euphoria in Windows you can get handles to stdin and stdout >throught the KERNEL32 DLL. Then you can Use POST requests to interact with >standard i/o streams. There is a magazine article about it in > VISUAL DEVELOPER MAGAZINE JAN/FEB 1999 VOL 9, NO. 5 >issue about using this technique with Visual Basic. >I'am not an expert on CGI (COMMON GATEWAY INTERFACE) but it looks like it >would be easy to implement in Euphoria. It gives you much more capability >then GET next html. It allows the user to interactively communicate >with a server program. The source code in VB is on the >www.visual-developer.com archive but you will have to find a copy >of the magazine to read the article. >Bernie Thanks Bernie for the info about std streams. I haven't tried it myself to open those std streams, most of Win32 webservers provide "alternate" (call them easier) ways: WebSite has WinCGI, Xitami creates those temporary files, etc. You'll just need to change one or two lines of code to port your CGI from one webserver to other (if they provide different std "access" methods). If anybody has time it would be nice to have a .ew file to open/read these standard streams in Euphoria, and conform to the CGI standard more accuratly. Regards, Daniel Berstein [ daber at pair.com ]