问题
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 :.
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 ?
回答1:
Here are two tools that can help you:
- h2c, HTTP headers to curl, which converts a HTTP request to a suitable curl command line. (written by me)
- pcap2curl, which is similar in style but instead converts a saved PCAP file with a HTTP request to a curl command line.
来源:https://stackoverflow.com/questions/36545193/transfer-a-wireshark-captured-http-request-to-a-curl-request