PLBREST Runtime


 

PLBREST is a fully functional PL/B runtime used for processing a REST request for the PL/B Web Server product. The PLBREST runtime has all of the same PL/B Language capabilities as the PLBEWIN runtime. The PLBREST runtime uses the PL/B Web Server license count and can ONLY be used, executed and invoked by the PL/B Web Server.

 

Note the following:

  1. PL/B WebServer must be version 10.9 or greater.

  2. The plbrest.exe command must be in the same folder as the PL/B Web Server command (plbwebsrv.exe,plbwebsrva.exe,plbwebsrvt.exe).

  3. PLBWEB_REST_CMDLINEnn must start with plbrest only (no pathing).

 

Sample Configuration in plbwebsrv.ini

 

#==============================================================================

#

# CGI Configuration (PHP and REST)

#

#==============================================================================

 

# PLBWEB_CGI_ERRLEVEL=0

PLBWEB_CGI_INFODIR=C:\Sunbelt\plbwebsrv.109\cgitemp\Z

PLBWEB_CGI_KEEP=OFF

PLBWEB_CGI_TIMEOUT=120

#====================================================================

#

# REST Configuration

#

#====================================================================

PLBWEB_REST_BASEURL01=MyServices/

PLBWEB_REST_CMDLINE01=plbrest %s %s

PLBWEB_REST_MAX_COUNT01=2

PLBWEB_REST_SSL01=BOTH

PLBWEB_REST_USE_ENV01=ON

PLBWEB_REST_USE_FCGI01=OFF

#====================================================================

#

# REST Configuration for FASTCGI

#

#====================================================================

PLBWEB_REST_BASEURL02=MyFastSrv/

PLBWEB_REST_CMDLINE02=plbrest %s phonefcgi

PLBWEB_REST_MAX_COUNT02=2

PLBWEB_REST_SSL02=OFF

PLBWEB_REST_USE_FCGI02=ON

PLBWEB_REST_PORTNUM02=9000

 

Sample plbrest.ini

 

[version]

PRODUCT=PLBREST

VERSION=10.9

 

[environment]

PLB_TERM=ansi

PLB_SYSTEM=C:\Sunbelt\plbwebsrv.109\code

PLB_PATH=C:\Sunbelt\plbwebsrv.109\code;C:\Sunbelt\plbwebsrv.109\demo\programs

PLB_CGI_DIR=C:\Sunbelt\plbwebsrv.109\cgitemp\Z

 

See Also: PLBWIN Runtime Requirements, PLBWIN INI File Format, PLBWIN Keywords, Compiler and Runtime Options

 



Compiler and Runtime Options