Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ns_guesstype(3aolserv) [debian man page]

ns_guesstype(3aolserver)				    AOLserver Built-In Commands 				  ns_guesstype(3aolserver)

__________________________________________________________________________________________________________________________________________________

NAME
ns_guesstype - commands SYNOPSIS
ns_guesstype filename _________________________________________________________________ DESCRIPTION
This command guesses and returns the MIME type of filename, based on the file extention. It has an extensive set of default mappings. You can also add your own mappings in the "ns/server/servername/mimetype" section of the config file. MIMETYPES
The following extentions and mimetypes are the default maps. .adp text/html .ai application/postscript .aif audio/aiff .aifc audio/aiff .aiff audio/aiff .ani application/x-navi-animation .art image/x-art .au audio/basic .avi video/x-msvideo .bin application/x-macbinary .bmp image/bmp .css text/css .csv application/csv .dci text/html .dcr application/x-director .dir application/x-director .dp application/commonground .dxr application/x-director .elm text/plain .eml text/plain .exe application/octet-stream .gbt text/plain .gif image/gif .gz application/x-compressed .hqx application/mac-binhex40 .htm text/html .html text/html .jfif image/jpeg .jpe image/jpeg .jpg image/jpeg .jpeg image/jpeg .js application/x-javascript .ls application/x-javascript .map application/x-navimap .mid audio/x-midi .midi audio/x-midi .mocha application/x-javascript .mov video/quicktime .mpe video/mpeg .mpeg video/mpeg .mpg video/mpeg .nvd application/x-navidoc .nvm application/x-navimap .pbm image/x-portable-bitmap .pdf application/pdf .pgm image/x-portable-graymap .pic image/pict .pict image/pict .pnm image/x-portable-anymap .png image/png .ps application/postscript .qt video/quicktime .ra audio/x-pn-realaudio .ram audio/x-pn-realaudio .ras image/x-cmu-raster .rgb image/x-rgb .rtf application/rtf .sht text/html .shtml text/html .sit application/x-stuffit .snd audio/basic .sql application/x-sql .stl application/x-navistyle .tar application/x-tar .tcl text/plain .text text/plain .tgz application/x-compressed .tif image/tiff .tiff image/tiff .txt text/plain .xbm image/x-xbitmap .xpm image/x-xpixmap .vrml x-world/x-vrml .wav audio/x-wav .wrl x-world/x-vrml .z application/x-compressed .zip application/x-zip-compressed SEE ALSO
nsd(1), info(n), ns_return(n) KEYWORDS
mime AOLserver 4.0 ns_guesstype(3aolserver)

Check Out this Related Man Page

Ns_Mime(3aolserver)					   AOLserver Library Procedures 				       Ns_Mime(3aolserver)

__________________________________________________________________________________________________________________________________________________

NAME
Ns_GetMimeType - Return the MIME type of a file SYNOPSIS
#include "ns.h" char * Ns_GetMimeType(char *file) _________________________________________________________________ DESCRIPTION
Ns_GetMimeType(file) The Ns_GetMimeType function uses the extension of file and looks up the associated MIME type stored internally in the server. Case is ignored. The return value is of the form "text/html". AOLserver has a set of predefined file extension to MIME type associations. You can add to these associations by defining file extension to MIME type associations in the server configuration file in the ns/mimetypes section. If you define a file extension that already exists in the server, that file extension and MIME type association will be replaced with yours. If no MIME type association exists for a particular file extension, or there is no file extension, the default and noextension MIME types are returned, respectively. These default to "*/*" but can be set in the server configuration file. Here is an example ns/mimetypes section from the server configuration file: ns_section "ns/mimetypes" ns_param ".doc" "application/msword" ns_param ".ppt" "application/vnd.ms-powerpoint" ns_param ".xls" "application/vnd.ms-excel" ns_param ".cab" "application/mscabinet" ns_param ".frl" "application/x-perfpro" ns_param ".max" "application/vviewer" ns_param ".mif" "application/x-mif" ns_param ".frz" "application/x-dffill" ns_param ".asvg" "image/svg-xml" ns_param ".asvgz" "image/svg-xml" ns_param ".svg" "image/svg-xml" ns_param ".svgz" "image/svg-xml" ns_param default "*/*" ns_param noextension "*/*" SEE ALSO
nsd(1), info(n) KEYWORDS
AOLserver 4.0 Ns_Mime(3aolserver)
Man Page