Har file has no line delimiters?

2 posts, 0 answers
  1. Yuriy
    Yuriy avatar
    1 posts
    Member since:
    Nov 2015

    Posted 04 Nov 2015 Link to this post

    A while ago I wrote a simple .har parser which I still use sometimes. It works perfectly fine for the files from FF and Chrome. Recently I have tried Fiddler and found it very useful, however, my parser failed to parse Fiddler' .har

    When I looked into this .har I can see it has no line delimiters which makes it hard to parse.

    Has it been done on purpose or I can change it somehow? Basically, I would like to have the same format as produced by Chrome and FF

  2. Eric Lawrence
    Admin
    Eric Lawrence avatar
    833 posts

    Posted 04 Nov 2015 Link to this post

    Hi, Yuriy--

    The HAR specification formats the data as JSON and does not call for line feeds anywhere within the file. As such, Fiddler does not insert line feeds anywhere within the file.

    I'm not aware of any JSON parsers that expect line feeds.

    Regards,
    Eric Lawrence
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top