mnoGoSearch 3.3.4 reference manual: Full-featured search engine software
Prev |  | Next

# ResultContentType

## Name

ResultContentType -- specifies the "Content-Type" header produced by search.cgi

search.htm

## Synopsis

ResultContentType {type}

## Description

Use this command to specify the "Content-Type" header generated by search.cgi. The value can include character set specification. The default value is "text/html; charset=$(BrowserCharset)".

If ResultContentType is set to `none`, then "Content-Type" header is not printed. This is useful if you execute search.cgi from another Web application which sends HTTP headers itself, so search.cgi does not need to do it. An example of a PHP program using system() call to include search.cgi may look like this:

    <?
      include("../include/top.php");
      system("export QUERY_STRING=\"$QUERY_STRING\"; /path/to/search.cgi");
      include("../include/bot.php");
    ?>

## Examples

    ResultContentType "text/plain"

    ResultContentType "text/xml; charset=utf-8"

    ResultContentType "none"

## See also

BrowserCharset

## See also

HTTPHeader, UseCookie.

Prev | Home | Next
ReplaceVar | Up | ResultsLimit