将Wireshark捕获的http请求传输到curl请求 [英] Transfer a wireshark captured http request to a curl request

查看:1044
本文介绍了将Wireshark捕获的http请求传输到curl请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试模拟一个我不熟悉的系统(http节俭)的发帖请求。

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

使用钢丝鲨,我会收到类似http的请求: 。

With wire shark, I get the http request like :.

但是我将使用 ab ,那么如何将Wireshark程序包传输到 ab curl 命令http请求? >

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 ?

推荐答案

以下两种工具可以为您提供帮助:

Here are two tools that can help you:


  1. h2c ,curl的HTTP标头,它将HTTP请求转换为合适的curl命令行。 (由我撰写)

  2. pcap2curl ,其样式相似而是将通过HTTP请求保存的PCAP文件转换为curl命令行。

  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.

这篇关于将Wireshark捕获的http请求传输到curl请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆