GoReplay is an open-source tool for capturing and replaying live HTTP traffic into a test environment in order to continuously test your system with real data. It can be used to increase confidence in code deployments, configuration changes and infrastructure changes.
I want to use the –http-original-host parameter to retain the host of the original request, but I encountered the following problem when using this parameter。the gor version is 1.3.0。
use –http-original-host before --input-raw。
[root@xx-xx-236-100 ~]# /usr/bin/gor –http-original-host --input-raw :8099 --output-http http://test_lb:80 2023/11/23 16:23:26 [PPID 30560 and PID 13170] Version:1.3.0 2023/11/23 16:23:26 Required at least 1 input and 1 output
use –http-original-host after --output-http。It starts normally, but it doesn't take effect。the host is the output test_lb。
/usr/bin/gor --input-raw :8099 --output-http http://test_lb:80 –http-original-host
use –-http-original-host
[root@xx-xx-236-100 ~]# /usr/bin/gor -–http-original-host --input-raw :8099 --output-http http://test_lb:80 flag provided but not defined: -–http-original-host
I want to use the –http-original-host parameter to retain the host of the original request, but I encountered the following problem when using this parameter。the gor version is 1.3.0。
[root@xx-xx-236-100 ~]# /usr/bin/gor –http-original-host --input-raw :8099 --output-http http://test_lb:80 2023/11/23 16:23:26 [PPID 30560 and PID 13170] Version:1.3.0 2023/11/23 16:23:26 Required at least 1 input and 1 output
/usr/bin/gor --input-raw :8099 --output-http http://test_lb:80 –http-original-host
[root@xx-xx-236-100 ~]# /usr/bin/gor -–http-original-host --input-raw :8099 --output-http http://test_lb:80 flag provided but not defined: -–http-original-host