2024年HTTP 计算机网络实验报告_第1页
2024年HTTP 计算机网络实验报告_第2页
2024年HTTP 计算机网络实验报告_第3页
2024年HTTP 计算机网络实验报告_第4页
2024年HTTP 计算机网络实验报告_第5页
已阅读5页,还剩3页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

陕西師范大學计算机网络试验汇报试验三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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论