Chapter 6 — Advanced Confi guration
<sexp
> should always be "HTTP" (case-sensitive).
3
Remarks: HTTP implies that the argument list in <sexp
"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.
Syntax:
ON HTTP GOTO<ncon>|<line label>
<ncon>
<line label>
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.
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.
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.
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
84
is the number of the line to which the program will
branch when the CGI request is received.
is the label of the line to which the program will branch
when the CGI request is received.
> is encoded in
2
.
EasyLAN User's Guide
Need help?
Do you have a question about the EasyCoder PF2i and is the answer not in the manual?