![Netscape ENTERPRISE SERVER 6.1 Manual Download Page 199](http://html1.mh-extra.com/html/netscape/enterprise-server-6-1/enterprise-server-6-1_manual_1674653199.webp)
NSAPI Functions (in Alphabetical Order)
Chapter
5
NSAPI Function Reference
199
Parameters
none.
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, returning a 1 if it is
and 0 otherwise. It uses strings to specify the revision level to avoid ambiguities
like 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
util_is_url
The
util_is_url
function checks whether a string is a URL, returning 1 if it is and
0 otherwise. The string is a URL if it begins with alphabetic characters followed by
a colon.
Syntax
int util_is_url(char *url);
Returns
1 if the string specified by
url
is a URL or 0 if the string specified by
url
is not a
URL.
Parameters
char *url
is the string to be examined.
See also
util_is_mozilla, util_later_than
Summary of Contents for ENTERPRISE SERVER 6.1
Page 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 1 April 2002 Draft...
Page 290: ...Miscellaneous 290 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 318: ...cinfo 318 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 336: ...Buffered Streams 336 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 344: ...344 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 350: ...350 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 356: ...356 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...