3

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 enter image description here

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 ?

Community
  • 1
  • 1
Florian Bidabé
  • 640
  • 8
  • 22

1 Answers1

0

This was answer already:

Link

This is not perfect an needs tuning but if your request are simple. it should work just fine for you.

Chop Labalagun
  • 592
  • 1
  • 6
  • 19