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

# cgiHeader(3)

Print the HTTP header

## NAME

cgiHeader - Print the HTTP header

## SYNOPSYS

```
#include <cgi.h>

void cgiHeader ();
```

## DESCRIPTION

This routine just prints out the Contents-type: line to make the web server happy.  By default the CGI library assumes that you return regular HTML code and uses "text/html" as type.  If your CGI program returns something else, you may set the type with [**cgiSetType**(3)](/cgiSetType/3.md). You may also  add additional header lines by using [**cgiSetHeader**(3)](/cgiSetHeader/3.md).

## RETURN VALUE

This routine does not return a value.

## 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

[**cgiDebug**(3)](/cgiDebug/3.md), [**cgiSetHeader**(3)](/cgiSetHeader/3.md), [**cgiSetType**(3)](/cgiSetType/3.md), [**cgiInit**(3)](/cgiInit/3.md), [**cgiGetValue**(3)](/cgiGetValue/3.md).
