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
Содержание ENTERPRISE SERVER 6.1
Страница 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 1 April 2002 Draft...
Страница 18: ...Where to Find Related Information 18 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 138: ...CGI to NSAPI Conversion 138 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 214: ...NSAPI Functions in Alphabetical Order 214 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 290: ...Miscellaneous 290 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 310: ...The Netscape LDAP Schema 310 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 318: ...cinfo 318 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 324: ...Sample MIME Types File 324 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 336: ...Buffered Streams 336 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 344: ...344 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 350: ...350 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 356: ...356 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...