嵌入式linux下基于cgi的文件上傳下載的實現(xiàn).doc
約41頁DOC格式手機(jī)打開展開
嵌入式linux下基于cgi的文件上傳下載的實現(xiàn),嵌入式linux下基于cgi的文件上傳下載的實現(xiàn)本文共計41頁,10861字; 摘要 隨著對嵌入式linux的深入研究,在此平臺上的應(yīng)用也越來越廣泛。在嵌入式linux系統(tǒng)下較為常見的需求是上傳和下載一些文件,這就需要掌握動態(tài)的web技術(shù)。本文針對在嵌入式系統(tǒng)中如何有效的實現(xiàn)動態(tài)web內(nèi)容,給出了一種解決方案。cgi是...


內(nèi)容介紹
此文檔由會員 霜天盈月 發(fā)布
嵌入式Linux下基于CGI的文件上傳下載的實現(xiàn)
本文共計41頁,10861字;
摘要
隨著對嵌入式linux的深入研究,在此平臺上的應(yīng)用也越來越廣泛。在嵌入式linux系統(tǒng)下較為常見的需求是上傳和下載一些文件,這就需要掌握動態(tài)的WEB技術(shù)。本文針對在嵌入式系統(tǒng)中如何有效的實現(xiàn)動態(tài)Web內(nèi)容,給出了一種解決方案。CGI是實現(xiàn)動態(tài)WEB技術(shù)之一。采用Perl語言或PHP設(shè)計的CGI程序,由于語言有內(nèi)置支持,實現(xiàn)文件傳輸不難,但由于需要另外安裝相應(yīng)的解釋器,使得某些場合應(yīng)用受到限制;而采用C語言設(shè)計CGI,編譯為二進(jìn)制代碼后,boa可以直接執(zhí)行,而且文件比較小(只有幾十K大?。?。
本文首先對嵌入式linux系統(tǒng)移植進(jìn)行簡單介紹,然后在嵌入式linux上成功移植了boa服務(wù)器,并且介紹該系統(tǒng)boa的配置文件的詳細(xì)設(shè)置,使得boa服務(wù)器能夠正確運行CGI程序,并且能夠處理請求。
關(guān)鍵詞:嵌入式linux,boa,cgi,上傳,下載
Abstract
With the further investigation to embedded linux, the application on this platform is more and more extensive. The comparatively common demand is to upload and download some files under embedded linux system which needs to master dynamic WEB technology. This paper provide a kind of solution for how to realize dynamic Web content in the embedded system . CGI is one of the technology that realizes the dynamic WEB. It is easy for the CGI procedure which Adopt Perl language or PHP, because the languages has Built-in support .But because it is needed to install the
1 引言 5
2 嵌入式linux的技術(shù)簡介 5
2.1 交叉編譯模式 5
2.2 編譯安裝arm內(nèi)核 6
2.3 下載Linux內(nèi)核和文件系統(tǒng) 8
2.4 啟動ARM Linux系統(tǒng) 9
2.5 根文件系統(tǒng) 10
3 boa服務(wù)器的介紹及移植 12
3.1 boa服務(wù)器的簡單介紹 12
3.2 boa服務(wù)器的編譯 12
3.3 配置簡單的boa服務(wù)器 12
4 CGI原理及程序設(shè)計 16
4.1 CGI的工作原理 16
4.2 CGI的傳送方法 16
4.2.1 GET方法 16
4.2.2 POST方法 17
4.2.3 HEAD方法 17
4.3 環(huán)境變量 17
4.3.1 CGI環(huán)境變量 17
4.4 CGI的工作步驟 19
4.5 CGI程序設(shè)計 20
4.5.1 CGI程序的頭部信息 20
4.5.2 位置信息 20
4.5.3 CGI程序的邏輯結(jié)構(gòu) 21
4.5.4 CGI上傳下載程序設(shè)計 21
附錄 23
結(jié)束語 39
參考文獻(xiàn): 40
致 謝 42
部分參考文獻(xiàn):
[1]劉偉,李小武,羅明。CGI技術(shù)全面接觸。清華大學(xué)出版社,2001。
[2]周立功等。MagicARM2410教學(xué)實驗開發(fā)平臺實驗指導(dǎo)。廣州致遠(yuǎn)電子有限公司,2006。
[3]楊波,趙輝,賈燕等。Linux下的WEB服務(wù)器技術(shù)。西安電子科技大學(xué)出版社,2001。
本文共計41頁,10861字;
摘要
隨著對嵌入式linux的深入研究,在此平臺上的應(yīng)用也越來越廣泛。在嵌入式linux系統(tǒng)下較為常見的需求是上傳和下載一些文件,這就需要掌握動態(tài)的WEB技術(shù)。本文針對在嵌入式系統(tǒng)中如何有效的實現(xiàn)動態(tài)Web內(nèi)容,給出了一種解決方案。CGI是實現(xiàn)動態(tài)WEB技術(shù)之一。采用Perl語言或PHP設(shè)計的CGI程序,由于語言有內(nèi)置支持,實現(xiàn)文件傳輸不難,但由于需要另外安裝相應(yīng)的解釋器,使得某些場合應(yīng)用受到限制;而采用C語言設(shè)計CGI,編譯為二進(jìn)制代碼后,boa可以直接執(zhí)行,而且文件比較小(只有幾十K大?。?。
本文首先對嵌入式linux系統(tǒng)移植進(jìn)行簡單介紹,然后在嵌入式linux上成功移植了boa服務(wù)器,并且介紹該系統(tǒng)boa的配置文件的詳細(xì)設(shè)置,使得boa服務(wù)器能夠正確運行CGI程序,并且能夠處理請求。
關(guān)鍵詞:嵌入式linux,boa,cgi,上傳,下載
Abstract
With the further investigation to embedded linux, the application on this platform is more and more extensive. The comparatively common demand is to upload and download some files under embedded linux system which needs to master dynamic WEB technology. This paper provide a kind of solution for how to realize dynamic Web content in the embedded system . CGI is one of the technology that realizes the dynamic WEB. It is easy for the CGI procedure which Adopt Perl language or PHP, because the languages has Built-in support .But because it is needed to install the
1 引言 5
2 嵌入式linux的技術(shù)簡介 5
2.1 交叉編譯模式 5
2.2 編譯安裝arm內(nèi)核 6
2.3 下載Linux內(nèi)核和文件系統(tǒng) 8
2.4 啟動ARM Linux系統(tǒng) 9
2.5 根文件系統(tǒng) 10
3 boa服務(wù)器的介紹及移植 12
3.1 boa服務(wù)器的簡單介紹 12
3.2 boa服務(wù)器的編譯 12
3.3 配置簡單的boa服務(wù)器 12
4 CGI原理及程序設(shè)計 16
4.1 CGI的工作原理 16
4.2 CGI的傳送方法 16
4.2.1 GET方法 16
4.2.2 POST方法 17
4.2.3 HEAD方法 17
4.3 環(huán)境變量 17
4.3.1 CGI環(huán)境變量 17
4.4 CGI的工作步驟 19
4.5 CGI程序設(shè)計 20
4.5.1 CGI程序的頭部信息 20
4.5.2 位置信息 20
4.5.3 CGI程序的邏輯結(jié)構(gòu) 21
4.5.4 CGI上傳下載程序設(shè)計 21
附錄 23
結(jié)束語 39
參考文獻(xiàn): 40
致 謝 42
部分參考文獻(xiàn):
[1]劉偉,李小武,羅明。CGI技術(shù)全面接觸。清華大學(xué)出版社,2001。
[2]周立功等。MagicARM2410教學(xué)實驗開發(fā)平臺實驗指導(dǎo)。廣州致遠(yuǎn)電子有限公司,2006。
[3]楊波,趙輝,賈燕等。Linux下的WEB服務(wù)器技術(shù)。西安電子科技大學(xué)出版社,2001。