Skip to content

TEZcgi.WriteContent

Writes the content type to standard output.

Declaration

Source position: ezcgi.pp line 70

public 
procedure TEZcgi.WriteContent(const ctype: string);

Description

WriteContent writes the content type cType to standard output, followed by an empty line. After this method was called, no more HTTP headers may be written to standard output. Any HTTP headers should be written before WriteContent is called. It should be called from the DoPost or DoGet methods.

See also

Name Description
DoPost Method to handle POST requests.
DoGet Method to handle GET requests.
PutLine Send a line of output to the web-client.