Name

ap_find_token — look for a token in a line (usually an HTTP header)

Synopsis

int ap_find_token(pool *p, const char *line, const char *tok)

Looks for tok in line. Returns nonzero if found. The token must exactly match (case blind) and is delimited by control characters (determined by iscntrl), tabs, spaces, or one of these characters:

()<>@,;\\/[]?={}

This corresponds to the definition of a token in RFC 2068.

Get Apache: The Definitive Guide, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.