|
|
|
|
|
by lifeisstillgood
878 days ago
|
|
Doesn’t wireshark have a format for storing request / responses ? That seems a fair standard to lean on. I like the idea - I think I have at least two formats for storing expected request / responses and probably more. But standardising - as in not just my ball of twine tools uses but every uses is great. I just think it already exists ? |
|
1. PcapNG as well as the other file formats look like they are storing packets, which is a lower level than HTTP requests and unnecessarily verbose for my intended purposes.
2. They are binary formats, which makes them less suitable for printing to stdout. This also means, that they are not line based, which means UNIX tools, like grep, cannot be used effectively.
3. They are not designed for streaming. The httpipe format is line-based and contains no header/global fields. Thus it is trivial to, for example, build a filtering program: it would just read one line at a time and print it again, if it matches filter criteria; the output would automatically be valid httpipe again.
4. Lastly, parsing and composing JSON is something most developers have done before and basically every programming language has libraries for it. This makes it easy for the ecosystem to grow and enables users to build custom tools without too much initial effort.
[1] https://wiki.wireshark.org/FileFormatReference
[2] https://pcapng.com/