A Study on Cgi of Embedded Webserver

On dynamic embedded Web server, cgi program is adopted to complete the required workflow. Due to the resource limitation of embedded systems, the performance of embedded Web server is an important issue. To address this problem, we combine cgi with Javascript and make them collaboratively running to satisfy the requirement of embedded application. On embedded server, cgi processes the parameters submitted by client pc and appends the results to the end of HTML page. On client IE, the Javascript embedded in HTML page will parse the results and displayed on the right place of Web page. We also designed a method that detach cgi with business logic and driver interface. In this way cgi can send parameter to driver application indirectly by exchanging parameters through Linux shellt. This enables cgi and driver application to be debugged separately.