#2 HarLog toString method output invalid HAR file

open
nobody
HarLib (2)
5
2012-12-20
2012-12-20
Jack Bruno
No

There seems to be a bug in outputting a HarLog object to a string. After successfully loading a valid HAR file into a HarLog object using the toString method outputs an invalid HAR. This is seen using 1.0.1 and 1.1.

Example

HarFileReader reader = new HarFileReader();
HarLog log = reader.readHarFile(new File("path/to/file"));
System.out.print(log.toString());

See attached HAR file generated by Chrome for the Google home page.

Discussion

  • Jack Bruno
    Jack Bruno
    2012-12-20