Sun Java System Web Proxy Server 4.0.11 NSAPI Developer's Guide

util_is_mozilla

The util_is_mozilla function checks whether a specified user-agent header string is a Netscape browser of at least a specified revision level. The function 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 Netscape browser, or 0 if the user-agent is not a Netscape 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