Back to mnoGoSearch site


mnoGoSearch 3.3.12 reference manual: Full-featured search engine software
PrevNext

ResultContentType

Name

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

search.htm

Synopsis

ResultContentType {type}

Description

ResultContentType sets the Content-Type HTTP response 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 the 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 HTTPHeader, UseCookie.