我需要使用浏览器移动代理来获取并验证来自请求标头的内容编码 - https://github.com/lightbody/browsermob-proxy
我可以从设备收集所有请求。但遗憾的是,请求标头中缺少Content-Encoding标头。如何获得此标头值?
响应标题:
Content-Type | text/plain
Date | Thu, 25 Jan 2018 04:55:14 GMT
Server | fasthttp
Connection | keep-alive
请求标题
User-Agent | Mozilla/5.0 (Linux; U; Android 8.0.0; en-us; Pixel Build/OPR3.170623.008) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
Content-Type | application/json; charset=UTF-8
Accept | application/json
Host | hostname
Connection | Keep-Alive
Accept-Encoding | gzip
Content-Length | 640