I am looking for a way to convert automatically a HTTP captured frame from TCPdump, or Tshark into a cURL query.
For example, after dumping network traffic as a .pcap file, I would like to find a tool to convert HTTP GET, POST and PUT into cURL commands:
This is pretty much what Firebug allows me to do
At the moment I am dissecting those HTTP frames from a .pcap file using Tshark, and save them into a database, then craft cURL queries in PHP but I occasionally experience issues while injecting POST data with different Content-Types (multipart/form-data; boundary for instance).
Would anyone know a tool or script to craft a cURL query from a pcap file or Tshark ?