欢迎来到天天文库
浏览记录
ID:20891490
大小:213.00 KB
页数:24页
时间:2018-10-17
《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
此文档下载收益归作者所有