lightbody / browsermob-proxy

A free utility to help web developers watch and manipulate network traffic from their AJAX applications.
http://bmp.lightbody.net
Apache License 2.0
2.14k stars 646 forks source link

Unsupported Content text #744

Open rhajj opened 6 years ago

rhajj commented 6 years ago

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 ?

Alceatraz commented 4 years ago

response.content.text is illegal BASE64

1yus2yus3 commented 1 year ago

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 commented 1 year ago

ok,i find the Solution

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