[ Table Of Contents | Keyword Index ]

ns_browsermatch(n) 4.99 "NaviServer Built-in Commands"

NAME

ns_browsermatch - Match against the User-Agent header

TABLE OF CONTENTS

    TABLE OF CONTENTS
    SYNOPSIS
    DESCRIPTION
    COMMANDS
    EXAMPLES
    SEE ALSO
    KEYWORDS

SYNOPSIS

ns_browsermatch ?connId? pattern

DESCRIPTION

This command returns a boolean indicating if the pattern matches the User-Agent header on the current HTTP request.

COMMANDS

ns_browsermatch ?connId? pattern

EXAMPLES

 
 % ns_browsermatch *Mozilla*
 1

SEE ALSO

nsd

KEYWORDS

Tcl , [string , match] , ns_browsertype , ns_conn headers