Intermec 10I2 Guía Del Usuario
82
EasyLAN User’s Guide
Chapter 6 — Advanced Confi guration
given in the DATA stringassoc. environment.
For example:
"Intermec-CGI/1.0:mode=single&send_hdr=yes"
Parameters
Meaning
mode=interrupt
Th
e program is run until it ends, servicing multiple requests via
ON HTTP GOTO/HTTP RESUME.
mode=single
Th
e program is started and ended once per HTTP request. Th
e
TCP-connection to the web browser is open until the program is
ended. Output on STDOUT is transmitted to the HTTP client.
ended. Output on STDOUT is transmitted to the HTTP client.
send_hdr=yes
Th
e program must produce headers, the web server does not pro-
duce any.
prot=list of users
Th
e program is protected, comma separated list of user that have
access.
Fingerprint CGI Commands
GETASSOC$
GETASSOC$ is a function for getting a value from a string association.
Syntax:
GETASSOC$ (<sexp1>,<sexp2>)
<sexp
1
> is the name of the association (case-sensitive).
<sexp
2
> is the name of a tuple in the association.
An association is an array of tuples, where each tuple consists of a name
and a value.
and a value.
Th
is example shows how a string, including three string names associated
with three start values, will be defi ned and one of them (time) will be
changed:
changed:
10
QUERYSTRING$="time=UNKNOWN&label=321&desc=DEF"
20
MAKEASSOC"QARRAY",QUERYSTRING$,"HTTP"
30
QTIME$=GETASSOC$("QARRAY","time")
40
QLABELS%=VAL(GETASSOC$("QARRAY","label"))
50
QDESC$=GETASSOC$("QARRAY","desc")
60
PRINT"time=";QTIME$,"LABEL=";QLABELS%,
"DESCRIPTION=";QDESC$
70
70
SETASSOC"QARRAY","time",time$
80
PRINT"time=";GETASSOC$("QARRAY","time")