Intermec 10I2 Betriebsanweisung
84
EasyLAN User’s Guide
Chapter 6 — Advanced Confi guration
<sexp
3
> should always be "HTTP" (case-sensitive).
Remarks: HTTP implies that the argument list in <sexp
2
> is encoded in
“x-www-url-encoding.”
ON HTTP GOTO
ON HTTP GOTO is used to defi ne the Fingerprint handler for the
CGI-request. When a request for an application CGI is received,
the current execution point will be pushed on to the stack and then
execution will commence in the handler with stdin and stdout redirected
from/to the web browser.
CGI-request. When a request for an application CGI is received,
the current execution point will be pushed on to the stack and then
execution will commence in the handler with stdin and stdout redirected
from/to the web browser.
Syntax:
ON HTTP GOTO<ncon>|<line label>
<ncon>
is the number of the line to which the program will
branch when the CGI request is received.
<line label>
is the label of the line to which the program will branch
when the CGI request is received.
Remarks: Th
is statement is used in connection with EasyLAN and
defi nes a Fingerprint subroutine that handles the CGI-request. Setting
the handler’s line number or line label to 0 disables it. When a request
for an application CGI is received, the current execution point will be
pushed on to the stack and then the execution will commence in the
handler with stdin and stdout redirected from/to the Web browser.
the handler’s line number or line label to 0 disables it. When a request
for an application CGI is received, the current execution point will be
pushed on to the stack and then the execution will commence in the
handler with stdin and stdout redirected from/to the Web browser.
RESUME HTTP
When RESUME HTTP is executed, the application layer fi nishes
and the web server closes the TCP-connection and pops the execution
point so that the program continues where it was before the request was
received. Stdin and stdout will be restored to their original values.
and the web server closes the TCP-connection and pops the execution
point so that the program continues where it was before the request was
received. Stdin and stdout will be restored to their original values.
Interrupt
If mode is set to interrupt but the program is not running, the error
message “Application not started” is shown when the resource is requested.
If ON HTTP GOTO is defi ned, the interrupt handler will be called
even for other Fingerprint CGI-programs, and it is up to the application
to handle/honor this.
message “Application not started” is shown when the resource is requested.
If ON HTTP GOTO is defi ned, the interrupt handler will be called
even for other Fingerprint CGI-programs, and it is up to the application
to handle/honor this.
To look-up which program that was requested, you should use
GETASSOC$("ENV","SCRIPT_NAME")
.
Example of Fingerprint program:
10 'Intermec-CGI/1.0:
mode=interrupt&send_hdr=no