基于Web的应用系统开发.ppt
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_05.gif)
《基于Web的应用系统开发.ppt》由会员分享,可在线阅读,更多相关《基于Web的应用系统开发.ppt(24页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、基于Web的应用系统开发4.Web browsers,servers and HTTP2OverviewlClient-server paradigm lWeb browserslWeb serverslURL lMIMElHTTP 3The client server paradigmlA widely used form of communicationlServer application waits passively for contact from clientslA server provides a specific servicelClient application act
2、ively initiates contact with the serverlInformation can flow in both directionslTypical situation is many clients interacting with each server4Web BrowserslBrowsers are clients always initiate,servers react lAllow user to browse resources available on server either existing or dynamically built docu
3、mentsl Mosaic-NCSA(Univ.of Illinois),in early 1993First to use a GUI,led to explosion of Web useInitially for X-Windows,under UNIX,but was ported to other platforms by late 1993lCurrent common browsersInternet Explorer,Netscape,Opera,Mozilla Firefox,Safari,Google Chrome(as of 9/3/08)5Web Servers lPr
4、ovide responses to browser requestslAll communications between browsers and servers use Hypertext Transfer Protocol(HTTP)lWeb servers run as background processes in the operating systemMonitor a communications port on the host,accepting HTTP messages when they appearlCommon serversApache,Internet In
5、formation Server(IS)6Uniform Resource Locators(URLs)lStandard way of specifying entities on networkslFirst part-protocolterminated by colon(:)common protocols are http,ftp,mailto,telnet,i.e.:http:ftp:mailto:telnet:lSecond part-varies according to protocolmailto-e-mail address e.g.:resource-oriented
6、protocols(http,ftp etc)Host name+domain names(preceded by/)may optionally include username,password and portPathname(usually related to the path of a file on the server)i.e./fully-qualified-domain-name/path-to-documentlOptional third partsQuery string(preceded by?)Fragment identifier(preceded by#)7E
7、xample URLslhttp:/:80/lhttp:/:8799/lhttp:/ Server CharacteristicslWeb servers have two main directories:1.Server root(server system software)2.Document root(servable documents)This will map to the URL of the full domain name,e.g.:User document root directoryDirectories of a standard name in the user
8、s home directoryUsually this is called public_htmlThe URL is then mapped as username e.g.:http:/ Server CharacteristicslDocument root is accessed indirectly by clientsIts actual location is set by the server configuration fileRequests are mapped to the actual locationE.g.doc root is topdocs and stor
9、ed in/admin/webSite isWhen there is a request for Server searches for file with address/admin/web/topdocs/bulbs/tulips.html 10Additional Server Features lVirtual document treesPart of servable document collection stored outside the document root lVirtual hosting Support for more than one site on a c
10、omputerlProxy serversServe documents that are in the document root of other machines11Multipurpose Internet Mail Extensions(MIME)lOriginally developed for emaillUsed to specify document types transmitted over the WebMIME type attached by the server to the beginning of the documentl Type specificatio
11、nsForm:type/subtypeExamples:text/plain,text/html,image/gif,image/jpeg12MIME lServer gets type from the requested file names suffix(.html implies text/html)lBrowser gets the type explicitly from the serverlExperimental typesSubtype begins with x-e.g.video/x-msvideoExperimental types require the serve
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 基于 Web 应用 系统 开发
![提示](https://www.taowenge.com/images/bang_tan.gif)
限制150内