Util_Is_Mozilla; Util_Is_Url - Netscape ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manual

Nsapi
Table of Contents

Advertisement

Parameters
none.

util_is_mozilla

The
util_is_mozilla
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
is the user-agent string from the request headers.
char *ua
is the major release number (to the left of the decimal point).
char *major
is the minor release number (to the right of the decimal point).
char *minor
See also
util_is_url, util_later_than

util_is_url

The
function checks whether a string is a URL, returning 1 if it is and
util_is_url
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.
Parameters
is the string to be examined.
char *url
See also
util_is_mozilla, util_later_than
function checks whether a specified user-agent header
is a URL or 0 if the string specified by
url
NSAPI Functions (in Alphabetical Order)
url
Chapter 5
NSAPI Function Reference
is not a
195

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents