Sun Java System Web Server 7.0 NSAPI Developer's Guide

util_is_mozilla

The util_is_mozilla function checks whether a specified user-agent header string is a mozilla browser of at least a specified revision level, returning a 1 if it is, and 0 otherwise. It uses strings to specify the revision level to avoid ambiguities such as 1.56 > 1.5.

Syntax

int util_is_mozilla(char *ua, char *major, char *minor);

Returns

1 if the user-agent is a mozilla browser, or 0 if the user-agent is not a mozilla browser.

Parameters

char *ua is the user-agent string from the request headers.

char *major is the major release number (to the left of the decimal point).

char *minor is the minor release number (to the right of the decimal point).

See Also

util_is_url, util_later_than