Wireshark Lab: HTTP v7.0

it2024-01-03  62

0. 实验文件地址

http://www-net.cs.umass.edu/wireshark-labs/Wireshark_HTTP_v7.0.pdf

方法字段可以取不同的值:GET、POST、HEAD、PUT和DELETE。

GET:请求服务器发送某个资源。HEAD:与GET很相似,但是服务器在响应中只返回首部,不会返回实体的主体部分。PUT:向服务器写入文档。POST:POST方法期初是用来向服务器输入数据的,实际上,通常会用它来支持HTML的表单。DELETE:请服务器删除请求URL所指定的资源。

持续连接与非持续连接:每个请求/响应对是经一个单独的TCP连接发送,还是所有的请求及其响应经相同的TCP连接发送。

下面是常见的HTTP状态码

200 —— 请求成功301 —— 资源(网页等)被永久转移到其他URL404 —— 请求的资源(网页等)不存在500 —— 内部服务器错误

1. The Basic HTTP GET/response interaction

1.1 Packets Display

1. 2 Question & Answer

HTTP version 1.1zh-Hans-CN、zh-Hansmy computer: 218.199.0.135 server : 128.119.245.12200 OKTue, 20 Oct 2020 05:59:01 GMT128 bytesHost

2. The HTTP CONDITIONAL GET/response interaction

2.1 Packets Display

2.2 Question & Answer

8. no

yes, because the status code is 200

yes

304 Not Modified. The server didn’t.

3. Retrieving Long Documents

3.1 Packets Display

3.2 Question & Answer

12. Only one GET request message 13. First 14. 200 OK 15. 4 reassembled TCP segments

4. HTML Documents with Embedded Objects

4.1 Packets Display

4.2 Question & Answer

16. Three HTTP GET request messages 17. As can be seen from the time, the two photos were downloaded in chronological order.

5. HTTP Authentication

5.1 Packets Display

5.2 Question & Answer

18. 401 Unauthorized 19. Authorization

最新回复(0)