|
Class: HTTPCGIService
Object
|
+--HTTPService
|
+--HTTPFileService
|
+--HTTPCGIService
- Package:
- stx:goodies/webServer
- Category:
- Net-Communication-HTTP-Services
- Version:
- rev:
1.12
date: 2023/04/07 18:49:10
- user: stefan
- file: HTTPCGIService.st directory: goodies/webServer
- module: stx stc-classLibrary: webServer
This service provides a callout mechanism for cgi-scripts.
It inherits from fileService, so both cgi-scripts and
regular files can be located in the same directory.
(this will no longer be needed, when we can have multiple
services linked to the same linkName).
copyrightCOPYRIGHT (c) 2003 by eXept Software AG
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
defaults
-
linkName
-
return the default path (with slash)
private
-
cgiEnvironmentFor: aRequest cgiFile: scriptFile
-
env at:'HTTP_*' put:''.
-
executeCGIScript: scriptFile for: aRequest
-
CG: a temporary hack to support bugzilla (which has cgi-files for perl)
-
nonProcessingCommandOutputReaderFor: aRequest outputTo: outputStream
-
return a stream which
simply prepends an HTML-ok line; perform nl->crnl processing in the header lines
and pass the rest of the cgi-scripts output unchanged.
queries-service
-
isCGIService
-
request handling
-
process: aRequest
-
not reached
|