Transfer a wireshark captured http request to a curl request

只谈情不闲聊 提交于 2020-08-06 07:26:28

问题


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:

  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.


来源:https://stackoverflow.com/questions/36545193/transfer-a-wireshark-captured-http-request-to-a-curl-request

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!