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.12 date: 2023/04/07 18:49:10
user: stefan
file: HTTPCGIService.st directory: goodies/webServer
module: stx stc-classLibrary: webServer

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

copyright

COPYRIGHT (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.

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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Thu, 21 Nov 2024 13:11:21 GMT