eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTTPCGIService':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: HTTPCGIService


Inheritance:

   Object
   |
   +--HTTPService
      |
      +--HTTPFileService
         |
         +--HTTPCGIService

Package:
stx:goodies/webServer
Category:
Net-Communication-HTTP-Services
Version:
rev: 1.9 date: 2015/01/13 12:19:58
user: cg
file: HTTPCGIService.st directory: goodies/webServer
module: stx stc-classLibrary: webServer
Author:
Claus Gittinger

Description:


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).


Class protocol:

defaults
o  linkName
return the default path (with slash)


Instance protocol:

private
o  cgiEnvironmentFor: aRequest cgiFile: scriptFile
env at:'HTTP_*' put:''.

o  executeCGIScript: scriptFile for: aRequest
CG: a temporary hack to support bugzilla (which has cgi-files for perl)

o  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
o  isCGIService

request handling
o  process: aRequest
not reached



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 16 Apr 2021 10:52:13 GMT