websGetRequestFlags | GoAhead WebServer API | GoAhead EMF |
Return the flags word associated with a browser request
#include "webs.h" int websGetRequestFlags(webs_t wp);
wp | Web server connection handle |
The websGetRequestFlags procedure returns the flags word for a given browser request.
The following flags are defined:
WEBS_LOCAL_PAGE | Request for local webs page |
WEBS_KEEP_ALIVE | HTTP/1.1 keep alive |
WEBS_DONT_USE_CACHE | Not implemented cache support |
WEBS_COOKIE | Cookie supplied in request |
WEBS_IF_MODIFIED | If-modified-since in request |
WEBS_POST_REQUEST | Post request operation |
WEBS_LOCAL_REQUEST | Request from this system |
WEBS_HOME_PAGE | Request for the home page |
WEBS_ASP | ASP request |
WEBS_HEAD_REQUEST | Head request |
WEBS_CLEN | Request had a content length |
WEBS_FORM | Request is a form |
WEBS_REQUEST_DONE | Request complete |
WEBS_POST_DATA | Already appended post data |
WEBS_HEADER_DONE | Already output the HTTP header |
Integer containing the request flags.
websSetRequestFlags(wp, websGetRequestFlags(wp, flags) | WEBS_HEADER_DONE));