![Netscape ENTERPRISE SERVER 6.1 Manual Download Page 80](http://html1.mh-extra.com/html/netscape/enterprise-server-6-1/enterprise-server-6-1_manual_1674653080.webp)
ObjectType Stage
80
Netscape Enterprise Server NSAPI Programmer’s Guide • April 2002 (Draft)
If the
charset
,
content-encoding
, and
content-language
have not been set for a
response, then just before the headers are sent the defaults defined by
set-default-type
are used. Note that by placing this function in different objects
in
obj.conf
, you can define different defaults for different parts of the document
tree.
Parameters
Example
shtml-hacktype
Applicable in
ObjectType
-class directives.
The
shtml-hacktype
function changes the content-type of any
.htm
or
.html
file
to
magnus-internal/parsed-html
and returns
REQ_PROCEED
. This provides
backward compatibility with server-side includes for files with
.htm
or
.html
extensions. The function may also check the execute bit for the file on UNIX
systems. The use of this function is not recommended.
Parameters
enc
(optional) is the encoding assigned to a matching request (the
content-encoding
header).
lang
(optional) is the language assigned to a matching request (the
content-language
header).
charset
(optional) is the character set for the
magnus-charset
parameter in
rq->srvhdrs
. If the browser sent the
Accept-charset
header or its
User-agent
is mozilla/1.1
or newer, then append “
; charset=
charset
” to content-type,
where
charset
is the value of the
magnus-charset
parameter in
rq->srvhdrs
.
bucket
optional, common to all
obj.conf
functions
ObjectType fn="set-default-type" charset="iso_8859-1"
exec-hack
(UNIX only, optional) tells the function to change the
content-type only if the execute bit is enabled. The value of the
parameter is not important. It need only be provided. You
may use
exec-hack=true
.
Summary of Contents for ENTERPRISE SERVER 6.1
Page 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 1 April 2002 Draft...
Page 290: ...Miscellaneous 290 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 318: ...cinfo 318 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 336: ...Buffered Streams 336 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 344: ...344 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 350: ...350 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 356: ...356 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...