@CHIP-RTOS C Library - Common Gateway Interface API
Header File: #include <CGIAPI.H>
The CGI ("Common Gateway Interface") API provides
access to the CGI implementation of the IPC@CHIP® Web server.
CGI at the IPC@CHIP® provides the possibility to install at the IPC@CHIP® Web server
own programmed CGI functions. These functions are bound with a fixed name and are executed by
the Web server task, if a http request with such a fixed name comes in. This mechanism allows
dynamic usage of the IPC@CHIP® Web server.
For better understanding of CGI and possibilities for
using, see description of available program examples at the example link below.
File Upload:
Also there is a possibility to upload files to the @CHIP's disk. This does not use the CGI
interface but the Web server. Therefore you only need a defined HTML form which sends
the required data to the @CHIP Web server. An example can be found in the CGI Example Zip file.
Notes:
For test and demonstration purpose two pages are preinstalled at the IPC@CHIP®:
a)main.htm:
Static html introduction page.
b)chipcfg:
Dynamic page with system time/date and configuration data of the requested IPC@CHIP®.
For configuring the web server and CGI, see the provided chip.ini entries.