browsermob-proxy
browsermob-proxy copied to clipboard
Save images and video content from response?
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?
Are you enabling all the trafic you want to record?
Something like
proxy.enableHarCaptureTypes(CaptureType.getRequestCaptureTypes()); // enable everything