Transfer a wireshark captured http request to a curl request
Asked Answered
O

2

31

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 ?

Orland answered 11/4, 2016 at 9:47 Comment(0)
T
28

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.
Thee answered 13/10, 2017 at 9:35 Comment(2)
I like answer # 2.Posey
I don't. No idea how to get "a saved PCAP file" from Wireshark.Laurettalaurette
G
1

You can try tcptrace.

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

Gause answered 28/6, 2021 at 5:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.