svc/httpd/echo meth vers uri search
svc/httpd/stats meth vers uri search
The httpd program supports only the GET and HEAD methods of the HTTP protocol. The Content-type (default application/octet-stream) and Content-encoding (default binary) of a file are determined by looking for suffixes of the file name in /services/http/http.suff.
If the requested URI begins with /magic/, httpd loads the module associated with the remaining part of the URI. Take care to configure the name space sensibly. Simple servers echo and stats are provided (see below).
Httpd has the following options:
Echo is a trivial server that just returns the method, URI, any search, and the headers sent by the client.
Stats is an equally simple server that queries the cache and returns information to the user about pages stored in the cache.
More complex services can be written to httpd's private interface. The file httpd.m (in /appl/svc/httpd) defines constants and adts used by httpd. The file cgi.m defines the module Cgi which is the interface for programs called using the URI /magic/.
|HTTPD(8 )||Rev: Tue Mar 31 02:42:38 GMT 2015|