browsermob-proxy icon indicating copy to clipboard operation
browsermob-proxy copied to clipboard

Unsupported Content text

Open rhajj opened this issue 7 years ago • 3 comments
trafficstars

All response are saved in the HAR File but the content text is encoded base64 , i try to decoded it always returned invalid format , how can i get the response in the original format ?

rhajj avatar Apr 27 '18 08:04 rhajj

response.content.text is illegal BASE64

Alceatraz avatar Apr 27 '20 07:04 Alceatraz

yes,same problem,i try this code but not work ,i think maby captureBinaryContent set True cause this problem

print(base64.b64decode(_text).decode('utf-8'))

1yus2yus3 avatar Feb 03 '23 06:02 1yus2yus3

ok,i find the Solution

_text_dec = base64.b64decode(STR)
_really_data = brotli.decompress(_text_dec )
print(_really_data)

1yus2yus3 avatar Feb 03 '23 06:02 1yus2yus3