Filter a saved traffic file to just POST requests

mitmdump

  • View, record, and programmatically transform HTTP traffic.
    The command-line counterpart to mitmproxy.
    More information: <https://docs.mitmproxy.org/stable/overview-tools/#mitmdump>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

mitmdump -nr {{input_filename}} -w {{output_filename}} "{{~m post}}"

click the source code to copy install mitmdump on any operating system with command-not-found.com