Application Specifi C Cgi; Other Files; Fingerprint Cgi-Scripting - Intermec EasyCoder PF2i User Manual

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

Advertisement

Chapter 6 — Advanced Confi guration
stdout and then sent to the web browser. To be identifi ed as an IPP-
resource, the fi rst line in the fi le must contain options that tell which
command parser that should be used and how the HTTP request shall
be handled.
Th e options are x-www-url-encoded, that is, multiple arguments are
passed as name1=value1&name2=value2. Recognized options are ush for
command parser, rec_hdr and prot for arguments.
Application Specifi c CGI
Application specifi c CGI is a fi le identifi ed as CGI, which does not fall
into the previous category. To be identifi ed as a CGI resource, the fi rst
non-empty line in the fi le must contain Intermec-CGI/1.0: <option>.
Th e options are x-www-url-encoded, that is, multiple arguments are
passed as name1=value1&name2=value2. Recognized parameter names
are mode, send_hdr and prot.

Other Files

Files that do not fall into any of the previous categories are considered
regular fi les and are sent to the web browser without further inspection.

Fingerprint CGI-scripting

Fingerprint CGI-scripting is a kind of application specifi c CGI.
Fingerprint CGI-scripting has been inspired by concepts commonly
used in web programming and the web servers. When the web server
gets a request it sets environment variables to refl ect the request, and
redirects stdin and stdout to the TCP-connection established with the
web browser. Th en it starts the CGI program. When the program ends,
the web server (or OS) disconnects the TCP-connection. As a request
is received, a string-associative environment named ENV is created
to refl ect the nature of the request; stdin and stdout are redirected to
the web browser and control is given to the application layer. When
the application layer fi nishes, the web server disconnects the TCP-
connection to the web browser.
Th e format of the parameter stream passed from the web browser follows
the standard formatting given by the HTTP and CGI standards. For
GET requests the arguments are given in the QUERY_STRING, and for
POST requests the arguments are passed on stdin. Th e numbers of bytes
to read on stdin are given by CONTENT_LENGTH. Decoded data is
EasyLAN User's Guide
81

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the EasyCoder PF2i and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents