har

Detail procedure to generate a har file from a given url via command line tool


Could anybody advise how to generate a har file from given a url via command line in linux? Detail tools used and guidelines are much appreciated.

Thanks


Solution

  • You can use phantomjs for this work.

    phantomjs examples/netsniff.js "some_url" > out.har 
    

    or take a look at the BrowserMob Proxy