1

我需要使用 Browser Mob 代理从请求标头中获取并验证 Content-Encoding - 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
4

0 回答 0