nodejs-based cgi
npm install nodejs-cgiCGI(Common Gateway Interface)
==================================
通用网关接口(Common Gateway Interface/CGI)是一种重要的互联网技
术,可以让一个客户端,从网页浏览器向执行在网络服务器上的程序请求数
据。CGI描述了客户端和服务器程序之间传输数据的一种标准。
Installing
----------
npm install nodejs-cgi
Using
-----
通过一个上传文件的例子说明 cgi 的功能。具体操作过程如下:
1. 首先用户使用网页浏览器浏览文件upload.html,这个文件存放在服务
器的docs目录下。
2. upload.html中有个form表单。用户需要选择上传文件,写一行文件说
明,然后提交。