4

WEB安全入门-http通用报文

 1 year ago
source link: https://blog.51cto.com/apple0/5470102
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

通用报文位置

通用字段可以存在请求和响应报文中。

下面将对字段进行解释:

1、connection

表示连接时间

Connection: keep-alive

//keep-alive
//close

2、Cache-Control

用于控制缓存信息

Cache-Control: no-cache
//防止缓存过期的网页信息,要求获取最新缓存

Cache-Control: max-age=94608000
//服务器告诉客户端,缓存这个信息的最长时间

Cache-Control: no-cache, max-age=0, must-revalidate, no-store
//no-cache,不缓存过期信息
//no-store,不要进行缓存

3、Transfer-Encoding

表示输出的内容长度不能确定,需要分块处理。

Transfer-Encoding: chunked

4、Upgrade

升级为其他协议。

5、Via

代理服务器相关信息。

6、Warning

错误信息通告。

7、Date

用于表示内容产生的时间。

Date: Mon, 22 Jan 2018 07:25:34 GMT

8、Pragma

报文指令。

Pragma: no-cache

9、Trailer

报文末端的首部一览。

WEB安全入门-http通用报文_通用报文

具体的字段,不用死记硬背,需要的时候查询即可。 


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK