版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
陕西師范大學计算机网络试验汇报试验三HTTP一、试验目的1.通過使用wireshark软件掌握基本的GET,HTTP/响应交互和消息格式2.掌握探索HTTP协议的措施。二、试验器材1.PC机電脑一台。2.下载wireshark软件并安装三、试验操作环节及成果1.TheBasicHTTPGET/responseinteraction1Startupyourwebbrowser.2.StartuptheWiresharkpacketsniffer,asdescribedintheIntroductorylab(butdon’tyetbeginpacketcapture).Enter“http”(justtheletters,notthequotationmarks)inthedisplay-filter-specificationwindow,sothatonlycapturedHTTPmessageswillbedisplayedlaterinthepacket-listingwindow.(We’reonlyinterestedintheHTTPprotocolhere,anddon’twanttoseetheclutterofallcapturedpackets).3.Waitabitmorethanoneminute(we’llseewhyshortly),andthenbeginWiresharkpacketcapture.4.EnterthefollowingtoyourbrowserYourbrowsershoulddisplaytheverysimple,one-lineHTMLfile.5.StopWiresharkpacketcapture.试验截图如下:1.IsyourbrowserrunningHTTPversion1.0or1.1?WhatversionofHTTPistheserverrunning?我的浏览器上运行的HTTP版本是1.1,在版本為的HTTP服务器上运行。2.Whatlanguages(ifany)doesyourbrowserindicatethatitcanaccepttotheserver?表明可以接受的語言是:3.WhatistheIPaddressofyourcomputer?Oftheserver?我的计算机的IP地址是:2,服务器是:2。4.Whatisthestatuscodereturnedfromtheservertoyourbrowser?
5.WhenwastheHTMLfilethatyouareretrievinglastmodifiedattheserver?
6.Howmanybytesofcontentarebeingreturnedtoyourbrowser?
7.Byinspectingtherawdatainthepacketcontentwindow,doyouseeanyheaderswithinthedatathatarenotdisplayedinthepacket-listingwindow?Ifso,nameone如下网页可得:Congratulations.You'vedownloadedthefile!2.TheHTTPCONDITIONALGET/responseinteraction•StartuptheWiresharkpacketsniffer•EnterthefollowingURLintoyourbrowserYourbrowsershoulddisplayaverysimplefive-lineHTMLfile.•QuicklyenterthesameURLintoyourbrowseragain(orsimplyselecttherefreshbuttononyourbrowser)•StopWiresharkpacketcapture,andenter“http”inthedisplay-filter-specificationwindow,sothatonlycapturedHTTPmessageswillbedisplayedlaterinthepacket-listingwindow.•(Note:IfyouareunabletorunWiresharkonalivenetworkconnection,youcanusethehttp-ethereal-trace-2packettracetoanswerthequestionsbelow;seefootnote1.Thistracefilewasgatheredwhileperformingthestepsaboveononeoftheauthor’scomputers.)试验截图如下:
8.InspectthecontentsofthefirstHTTPGETrequestfromyourbrowsertotheserver.Doyouseean“IF-MODIFIED-SINCE”lineintheHTTPGET?没有看到。9.Inspectthecontentsoftheserverresponse.Didtheserverexplicitlyreturnthecontentsofthefile?Howcanyoutell?10.NowinspectthecontentsofthesecondHTTPGETrequestfromyourbrowsertotheserver.Doyouseean“IF-MODIFIED-SINCE:”lineintheHTTPGET?Ifso,whatinformationfollowsthe“IF-MODIFIED-SINCE:”header?有,11.WhatistheHTTPstatuscodeandphrasereturnedfromtheserverinresponsetothissecondHTTPGET?Didtheserverexplicitlyreturnthecontentsofthefile?Explain.304notmodifiedCache裏已經有不會再返回内容3.RetrievingLongDocumentsInourexamplesthusfar,thedocumentsretrievedhavebeensimpleandshortHTMLfiles.Let’snextseewhathappenswhenwedownloadalongHTMLfile.Dothefollowing:•Startupyourwebbrowser,andmakesureyourbrowser’scacheiscleared,asdiscussedabove.•StartuptheWiresharkpacketsniffer•EnterthefollowingURLintoyourbrowserYourbrowsershoulddisplaytheratherlengthyUSBillofRights.•StopWiresharkpacketcapture,andenter“http”inthedisplay-filter-specificationwindow,sothatonlycapturedHTTPmessageswillbedisplayed.•(Note:IfyouareunabletorunWiresharkonalivenetworkconnection,youcanusethehttp-ethereal-trace-3packettracetoanswerthequestionsbelow;seefootnote1.Thistracefilewasgatheredwhileperformingthestepsaboveononeoftheauthor’scomputers.)12.HowmanyHTTPGETrequestmessagesweresentbyyourbrowser?2個13.Howmanydata-containingTCPsegmentswereneededtocarrythesingleHTTPresponse?414.WhatisthestatuscodeandphraseassociatedwiththeresponsetotheHTTPGETrequest?200okFavicon.con15.ArethereanyHTTPstatuslinesinthetransmitteddataassociatedwithaTCP-induced“Continuation”?No,新版本整合了所有数据包内容16.HowmanyHTTPGETrequestmessagesweresentbyyourbrowser?TowhichInternetaddressesweretheseGETrequestssent?三個基本页:2图片17.Canyoutellwhetheryourbrowserdownloadedthetwoimagesserially,orwhethertheyweredownloadedfromthetwowebsitesinparallel?Explain.并行,两個页面是持续祈求,并没有等待第一种祈求得到答复才继续第二次祈求1
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026福建福州市侨联招聘1人备考题库附答案详解(综合卷)
- 2026天津市肿瘤医院秦皇岛医院选聘31人备考题库(河北)及参考答案详解(达标题)
- 四川省内江市农业科学院关于2026年公开考核招聘事业单位工作人员的备考题库带答案详解(预热题)
- 2026新疆喀什昆仑建设有限公司招聘3人备考题库附答案详解【完整版】
- 2026重庆建筑工程职业学院招聘非事业编制(合同制)人员1人备考题库(第一批)带答案详解(突破训练)
- 2026广东江门市朝阳社会工作服务中心招聘1人备考题库附参考答案详解(培优a卷)
- 2026上海师范大学附属官渡实验学校招聘1人备考题库带答案详解(完整版)
- 2026扬州平山堂茶业发展有限公司招聘茶饮店劳务派遣人员2人备考题库带答案详解(基础题)
- 2026贵州贵阳观山湖区远大小学教师招聘备考题库含答案详解(预热题)
- 2206江西鹰潭市邮政分公司现面向社会招聘合同用工备考题库附答案详解(培优a卷)
- 2025-2030精酿啤酒品牌视觉识别系统研究及包装设计与消费者吸引力评估
- 基于STM32的智能垃圾桶优化设计与实现
- 黄鑫目诊课件
- 2025年贵州省六盘水市辅警考试真题及答案
- 多层板干货知识培训课件
- 微信用户群体细分-洞察及研究
- 工程材料封样管理方案(3篇)
- 医疗器械委托研发协议
- 小学英语教学课件天气
- (正式版)DB42∕T 609-2010 《湖北省主要造林树种苗木质量分级》
- 产供销会议管理办法
评论
0/150
提交评论