websHeader GoAhead WebServer API GoAhead EMF

Synopsis

Output the common HTTP header and HTML tags to begin request response.

Prototype

 #include "webs.h"
   	       
 void websFooter(webs_t wp);

Parameters

wp Web server connection handle.

Description

The websHeader procedure is used by Form procedures to output the standard HTTP response header and HTML tags to begin a response to the browser's request. It outputs the following code:

HTTP/1.0 200 OK
Pragma: no-cache
Cache-control:  no-cache
Content-Type: text/html
<html>

Return Value

None

Example

websHeader(wp);
websWrite(wp, "Great Day Today");
websFooter(wp);
websDone(wp);

Stability Classification

Stable.

See Also

websDone, websWrite