session-replay-tools / tcpcopy

An online request replication and TCP stream replay tool, ideal for real testing, performance testing, stability testing, stress testing, load testing, smoke testing, and more.
http://session-replay-tools.github.io/tcpcopy/
Other
4.48k stars 1.03k forks source link

tcpcopy是否支持修改http头 #355

Closed chaorongguo closed 2 months ago

chaorongguo commented 5 years ago

线上机器tcpdump 下来的包头: psÞo]Ñ^ØPOST /ocr HTTP/1.0^M Host: lineocrser3^M Connection: close^M Content-Length: 79259^M

离线模式下,将Host替换成在线机器的ip,则离线回放成功 在线回放模式, 通过执行-H 在线机器的ip, 或者-x 指定 在线机器ip:端口 -测试机器ip :端口 都不行

wangbin579 commented 5 years ago

可以通过代理去修改,tcpcopy本身不修改应用层数据

chaorongguo commented 5 years ago

咱们提供内置的http代理修改模块吗,如果我想在线tcpcopy导流的话, 应该怎么做? 这种Host 对不上的场景,应该挺多的?

在 2019-08-12 11:24:50,"Bin Wang" notifications@github.com 写道:

可以通过代理去修改,tcpcopy本身不修改应用层数据

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

wangbin579 commented 5 years ago

通过类似nginx web服务器代理,就可以修改数据

chaorongguo commented 5 years ago

好的,谢谢