java accept-encoding_关于http请求中Accept-Encoding: gzip, deflate

RFC2616

A server tests whether a content-coding is acceptable, according to

an Accept-Encoding field, using these rules:

1. If the content-coding is one of the content-codings listed in

the Accept-Encoding field, then it is acceptable, unless it is

accompanied by a qvalue of 0. (As defined in section 3.9, a

qvalue of 0 means "not acceptable.")

2. The special "*" symbol in an Accept-Encoding field matches any

available content-coding not explicitly listed in the header

field.

3. If multiple content-codings are acceptable, then the acceptable

content-coding with the highest non-zero qvalue is preferred.

4. The "identity" content-coding is always acceptable, unless

specifically refused because the Accept-Encoding field includes

"identity;q=0", or because the field includes "*;q=0" and does

not explicitly include the "identity" content-coding. If the

Accept-Encoding field-value is empty, then only the "identity"

encoding is acceptable.

If no Accept-Encoding field is present in a request, the server MAY

assume that the client will accept any content coding.

设置为0,如果服务器返回的还是gzip的话,只能说web服务器不符合标准

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值