afc_cgi_manager_set_content_type

Name

afc_cgi_manager_set_content_type  -- Set the returning content type

Synopsis

int afc_cgi_manager_set_content_type ( CGIManager * cgi_manager, char * type );

Description

This function sets the content type that will be sent back to the browser by the afc_cgi_manager_write_header() call.

Inputs

cgi_manager

Pointer to a valid afc_cgi_manager instance.

type

The content type you want to set. Some examples are:

"text/html"

HTML page

"image/gif"

A GIF Image

"text/ascii"

A text file

Result

should return AFC_ERR_NO_ERROR

See Also