can't catch response with --input-raw-track-response
Author: tianxiao1988Created Sep 20, 2022Updated May 10, 2025
I'm using goreplay to capture request and response. My command is: gor --input-raw :8080 --output-stdout --input-raw-track-response. On Mac os, I can capture the request and response, but the response is strange, it's not a valid response, looks like:
2 d78522b57f000001012812a1 1663669556688042000 246000 HTTP/1.1 200 Vary: Origin Vary: Access-Control-Request-Method Vary: Access-Control-Request-Headers Content-Type: application/json Transfer-Encoding: chunked Date: Tue, 20 Sep 2022 10:25:56 GMT Keep-Alive: timeout=60 Connection: keep-alive
2ca {"code":200, "msg":"abcd"} 0
On Linux, the same api and same gor command, I can't capture response, only request.
I don't know why. gor version is 1.3.3
Source: probelabs/goreplay