嵌入式Web服務器軟件構成與工作原理(三)

CGI程序的應用

1、源碼編寫
我已將自己編寫的CGI簡單測試代碼上傳至csdn供大家下載,如有不足之處,望不吝賜教。

地址:http://download.csdn.net/source/3131289


2、環境搭建
將編譯後生成的cgi文件、html文件、lib庫和include文件夾拷貝至開發板的/var/www(boa.conf中配置的DocumentRoot)目錄下。


3、測試
在已經用網線連通開發板的PC下打開IE瀏覽器。

在地址欄中輸入http://192.168.1.168/index.html

回車後成功訪問頁面。

 

 

Application of CGI programs

 

Coding

I have uploaded my own CGI source code to the csdn for all to download, and if inadequate, hope you let me know.


Address:
http://download.csdn.net/source/3131289


Build Environment
Copy html, lib libraries, include folder to the /var/www (DocumentRoot in boa.conf) directory of the development board.


Test
Connect PC with the board to open the IE browser.
In the address bar: http://192.168.1.168/index.html
Can successful visit to the page after enter.

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章