Definition:
char *ap_field_noparam(pool *p, const char *intype);
Usage example:
content_type = ap_field_noparam(r->pool, r->content_type);
The ap_field_noparam() treats the string it is given
as an HTTP field value. It searches the string for the parameter
delimiter (";") and removes it, the trailing text, and any whitespace
tht preceeds it, copying the result into the supplied pool. A
pointer to the edited copy of the string is the return value.
A major use of this routine is in content-type comparisons,
since the Content-type header field frequently
includes parameters such as ";charset=Big5".
The routine strips such additional information from the
string, permitting a straightforward comparison of Internet
media types.
Previous: ap_exists_scoreboard_image
Next: ap_finalize_request_protocol
Table of Contents
(Routines,
Structures,
Data Cells,
Constants)