This function allows user verification of the security tokens. This step is
performed based on the authentication scheme.
Only HTTP_extract() and HTTPD_set() are valid during this step.
Name Translation
void
HTTPD_LINKAGE NameTrans(
unsigned char *handle, long *return_code);
This function provides a mechanism for mapping URLs to objects.
Only HTTPD_extract() and HTTPD_set() are valid during this step.
Authorization
void
HTTPD_LINKAGE Authorization(
unsigned char *handle, long *return_code);
This function verifies that the identified object may be returned to the
client. If you are doing basic authentication, you must generate the
required WWW-Authentication headers.
Only HTTPD_extract() and HTTPD_set() are valid functions during this
step.
Object Type
void
HTTPD_LINKAGE ObjType(
unsigned char *handle, long *return_code);
This step checks to see if the object exists and performs object typing.
Only HTTPD_extract() and HTTPD_set() are valid during this step.
Service
void
HTTPD_LINKAGE Service(
unsigned char *handle, long *return_code);
This function satisfies the request, if not satisfied in the PreExit.
All server-predefined functions are valid during this step. Refer to the
Enable directive in the HTTP Server for AS/400 Webmasters Guide,
GC41-5434 for information.
Data Filter
Filters data as a stream class, which means that each of its functions acts
like a segment of pipe down which data flows. For this step, you must use
three application functions:
void
HTTPD_LINKAGE open(
unsigned char *handle, long *return_code);
This function performs any initialization (such as buffer allocation) that is
required to process the data for this stream. An error returncode causes
this filter to abort.
112 Web Programming Guide V4R5