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

Save images and video content from response?

Open Rich2020 opened this issue 5 years ago • 1 comments

I've set up the proxy and can intercept responses (e.g. a call to a REST API will return JSON, which I can extract from the HAR and save to disk). However, I would also like to capture video and images. At the moment, a website content body will come in the response, but it will not included images, sound clips, scripts, etc. - only the raw HTML response is received.

How can I extract images, video, audio, scripts, etc. from the Har?

Rich2020 avatar Nov 09 '20 12:11 Rich2020

Are you enabling all the trafic you want to record?

Something like

proxy.enableHarCaptureTypes(CaptureType.getRequestCaptureTypes()); // enable everything

burkolter avatar Nov 24 '20 14:11 burkolter