Fingerprint Cgi Commands; Getassoc - Intermec EasyCoder PF2i User Manual

Easylan interface
Hide thumbs Also See for EasyCoder PF2i:
Table of Contents

Advertisement

Chapter 6 — Advanced Confi guration
given in the DATA stringassoc. environment.
For example:
"Intermec-CGI/1.0:mode=single&send_hdr=yes"
Parameters
mode=interrupt
mode=single
send_hdr=yes
prot=list of users

Fingerprint CGI Commands

GETASSOC$

GETASSOC$ is a function for getting a value from a string association.
Syntax:
GETASSOC$ (<sexp1>,<sexp2>)
<sexp
> is the name of the association (case-sensitive).
1
<sexp
> is the name of a tuple in the association.
2
An association is an array of tuples, where each tuple consists of a name
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:
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
SETASSOC"QARRAY","time",time$
80
PRINT"time=";GETASSOC$("QARRAY","time")
82
Meaning
Th e program is run until it ends, servicing multiple requests via
ON HTTP GOTO/HTTP RESUME.
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.
Th e program must produce headers, the web server does not pro-
duce any.
Th e program is protected, comma separated list of user that have
access.
EasyLAN User's Guide

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents