How to generate a HAR file