---
name: "cgiSetType"
section: "3"
platform: "linux"
package: "cgilib"
version: "0.6-1.1+b1"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/cgiSetType"
---

# cgiSetType(3)

Specify the result type

## NAME

cgiSetType - Specify the result type

## SYNOPSYS

```
#include <cgi.h>

int cgiSetType (char *type);
```

## DESCRIPTION

This routine sets the result type to *type*. This routine may be used optional.  Default is "text/html".  It will be used by [**cgiHeader**(3)](/cgiHeader/3.md).

## RETURN VALUE

On success 1 is returned, otherwise 0.

## AUTHOR

This CGI library is written by Martin Schulze \<joey@infodrom.org\>.  If you have additions or improvements please get in touch with him.

## SEE ALSO

[**cgiHeader**(3)](/cgiHeader/3.md), [**cgiSetHeader**(3)](/cgiSetHeader/3.md), [**cgiInit**(3)](/cgiInit/3.md).
