文档详情

2024年http 计算机网络实验报告.doc

发布:2024-05-28约4.97千字共8页下载文档
文本预览下载声明

陕西师范大学计算机网络试验报告

试验三HTTP

一、试验目的

1.经过使用wireshark软件掌握基本的GET,HTTP/响应交互和消息格式

2.掌握探索HTTP协议的措施。

二、试验器材

1.PC机电脑一台。

2.下载wireshark软件并安装

三、试验操作环节及成果

1.TheBasicHTTPGET/responseinteraction

1Startupyourwebbrowser.

2.StartuptheWiresharkpacketsniffer,asdescribedintheIntroductorylab(but

don’tyetbeginpacketcapture).Enter“http”(justtheletters,notthequotation

marks)inthedisplay-filter-specificationwindow,sothatonlycapturedHTTP

messageswillbedisplayedlaterinthepacket-listingwindow.(We’reonly

interestedintheHTTPprotocolhere,anddon’twanttoseetheclutterofall

capturedpackets).

3.Waitabitmorethanoneminute(we’llseewhyshortly),andthenbegin

Wiresharkpacketcapture.

4.Enterthefollowingtoyourbrowser

Yourbrowsershoulddisplaytheverysimple,one-lineHTMLfile.

5.StopWiresharkpacketcapture.

试验截图如下:

1.IsyourbrowserrunningHTTPversion1.0or1.1?WhatversionofHTTPistheserverrunning?

我的浏览器上运营的HTTP版本是1.1,在版本为的HTTP服务器上运营。

2.Whatlanguages(ifany)doesyourbrowserindicatethatitcanaccepttothe

server?

表白能够接受的语言是:

3.WhatistheIPaddressofyourcomputer?Oftheserver?

我的计算机的IP地址是:2,服务器是:2。

4.Whatisthestatuscodereturnedfromtheservertoyourbrowser?

5.WhenwastheHTMLfilethatyouareretrievinglastmodifiedattheserver?

6.Howmanybytesofcontentarebeingreturnedtoyourbrowser?

7.Byinspectingtherawdatainthepacketcontentwindow,doyouseeanyheaders

withinthedatathatarenotdisplayedinthepacket-listingwindow?Ifso,name

one

如下网页可得:

Congratulations.Youvedownloadedthefile!

2.TheHTTPCONDITIONALGET/responseinteraction

?StartuptheWiresharkpacketsniffer

?EnterthefollowingURLintoyourbrowser

Yourbrowsershoulddisplayaverysimplefive-lineHTMLfile.

?QuicklyenterthesameURLintoyourbrowseragain(orsimplyselecttherefresh

buttononyourbrowser)

?StopWiresharkpacketcapture,andenter“http”

显示全部
相似文档