29

I am trying to simulate a post request from a system I am not familiar with(http thrift).

With wire shark, I get the http request like :enter image description here.

But I am going to perform a stress test with tools like ab, so How I can transfer a Wireshark package to a ab or curl command http request ?

FisherMartyn
  • 826
  • 1
  • 8
  • 17

2 Answers2

25

Here are two tools that can help you:

  1. h2c, HTTP headers to curl, which converts a HTTP request to a suitable curl command line. (written by me)
  2. pcap2curl, which is similar in style but instead converts a saved PCAP file with a HTTP request to a curl command line.
Daniel Stenberg
  • 54,736
  • 17
  • 146
  • 222
0

You can try tcptrace.

For details, see: Capture, save and resend requests with Wireshark

main
  • 19
  • 1