web程序设计_basic

web程序设计_basic

ID:20891490

大小:213.00 KB

页数:24页

时间:2018-10-17

web程序设计_basic_第1页
web程序设计_basic_第2页
web程序设计_basic_第3页
web程序设计_basic_第4页
web程序设计_basic_第5页
资源描述:

《web程序设计_basic》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、课程内容绪论客户端技术HTMLCSSJavaScript服务器技术CGI和PHPASPJavaservlet,JSPB/S体系结构主机模式:allcomputationtakeplaceinthemaincomputer,usingdummyterminalC/S架构(Client/Server)mostcomputationtakeplaceintheserver,clientisacomputercarryingpartcomputationB/S架构(Browser/Server)thinclient,limitedabilityofclient,usingWebbrowserB/S结构

2、的优点维护方便,能够降低总体拥有成本。B/S比C/S的维护工作量大大减少了B/S相对C/S能够降低总体拥有成本选择更多移动办公系统整合WorldWideWeb(WWW)CoreComponentsServersStorefilesandexecuteremotecommandsBrowsers(i.e.,clients)Retrieveanddisplay“pages”ofcontentlinkedbyhypertextNetworksSendinformationbackandforthuponrequestProblemsHowtoidentifyanobjectHowtoretrieve

3、anobjectHowtointerpretanobjectWWW的主要技术URI(UniformResourceIdentifier)protocol://hostname:port/directory/objecthttp://www.cs.iastate.edu/index.htmlftp://popeye.cs.iastate.edu/welcome.txthttps://finance.yahoo.com/q/cq?s=ibm&d=v1Implementation:extendhierarchicalnamespacetoincludeanythinginafilesystemser

4、versideprocessingHTTP(HyperTextTransferProtocol)Anapplicationprotocolforinformationsending/receivingHTML(HypertextMarkupLanguage)AnlanguagespecificationusedtointerprettheinformationreceivingfromserverHTTP特性Request-responseexchangeServerrunsoverTCP,Port80ClientsendsHTTPrequestsandgetsresponsesfromser

5、verSynchronousrequest/replyprotocolStatelessNostateismaintainedbyclientsorserversacrossrequestsandresponsesEachpairofrequestandresponseistreatedasanindependentmessageexchangeResourcemetadataInformationaboutresourcesareoftenincludedinwebtransfersandcanbeusedinseveralwaysGETTransferresourcefromgivenUR

6、LHEADGetresourcemetadata(headers)onlyPUTStore/modifyresourceunderagivenURLDELETERemoveresourcePOSTProvideinputforaprocessidentifiedbythegivenURL(usuallyusedtopostCGIparameters)HTTP命令TheclientContactitslocalDNStofindouttheIPaddressofwww.cs.iastate.eduInitiateaTCPconnectiononport80Sendthegetrequestvia

7、theestablishedsocketGET/index.htmlHTTP/1.0TheserverSenditsresponsecontainingtherequiredfileTellTCPtoterminateconnectionThebrowserParsethefileanddisplayitaccordinglyRepeatthesamestepsinthepresenceofany

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。