1. CGI info
- Posted by Bernie Ryan <bwryan at PCOM.NET>
Mar 17, 1999
-
Last edited Mar 18, 1999
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
2. Re: CGI info
I've read about that before, but, as I understood it, only one POST request
can be handled at once.
Hopefully I'm wrong about that =)
thanks for the info,
Greg
Bernie Ryan 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
--
Greg Phillips
i.shoot at rednecks.com
http://euphoria.server101.com
--
Useless fact of the day:
The thumbnail grows the slowest; the middle nail grows the fastest
3. Re: CGI info
At 09:34 PM 17-03-1999 , you wrote:
>I've read about that before, but, as I understood it, only one POST request
>can be handled at once.
>Hopefully I'm wrong about that =)
Errr... only one GET or POST request can handled at once my any CGI
application. You can have several instaces of a CGI running concurrently,
each attending to it's own request. Perhaps the limitation you are refering
is of some ancient non multi-threaded webserver?
Regards,
Daniel Berstein
[ daber at pair.com ]
4. Re: CGI info
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 ]
5. Re: CGI info
Dan you wrote :
>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.
If you download the VB CGI source. I think that you will see that
getting standard streams can be done the same way as other Euphoria
windows programs. The key function is GetStdHandle in kernal32.
Bernie
6. Re: CGI info
- Posted by Daniel Berstein <daber at PAIR.COM>
Mar 18, 1999
-
Last edited Mar 19, 1999
At 10:32 AM 18-03-1999 , you wrote:
>Dan you wrote :
>
>>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.
>
>If you download the VB CGI source. I think that you will see that
>getting standard streams can be done the same way as other Euphoria
>windows programs. The key function is GetStdHandle in kernal32.
Do you have the time? I don't. If you can you could make .ew file for all
of us ;)
Regards,
Daniel Berstein
[ daber at pair.com ]