websGetRequestFlags GoAhead WebServer API GoAhead EMF

Synopsis

Return the flags word associated with a browser request

Prototype

#include "webs.h"

int websGetRequestFlags(webs_t wp);

Parameters

wp Web server connection handle

Description

The websGetRequestFlags procedure returns the flags word for a given browser request.

The following flags are defined:

WEBS_LOCAL_PAGERequest for local webs page
WEBS_KEEP_ALIVEHTTP/1.1 keep alive
WEBS_DONT_USE_CACHENot implemented cache support
WEBS_COOKIECookie supplied in request
WEBS_IF_MODIFIEDIf-modified-since in request
WEBS_POST_REQUESTPost request operation
WEBS_LOCAL_REQUESTRequest from this system
WEBS_HOME_PAGERequest for the home page
WEBS_ASPASP request
WEBS_HEAD_REQUESTHead request
WEBS_CLENRequest had a content length
WEBS_FORMRequest is a form
WEBS_REQUEST_DONERequest complete
WEBS_POST_DATAAlready appended post data
WEBS_HEADER_DONEAlready output the HTTP header

Return Value

Integer containing the request flags.

Example

websSetRequestFlags(wp,
    websGetRequestFlags(wp,  flags) | WEBS_HEADER_DONE));

See Also

websSetRequestBytes, websSetRequestFlags