goreplay icon indicating copy to clipboard operation
goreplay copied to clipboard

Response content include unreadable code?

Open niweicumt opened this issue 10 years ago • 2 comments

Thanks for the great software!

we need to be log the data returned (response payload) from web server as well, not just requests, i know that gor can track response with --input-raw-track-response, but it's conten include unreadable code.

For example: 2 b74e51604e001cdcc653b4729547b6f059459f0b 85181613 HTTP/1.1 200 OK Server: Apache-Coyote/1.1 X-Application-Context: application:8082 Content-Type: application/json;charset=UTF-8 Transfer-Encoding: chunked Content-Encoding: gzip Vary: Accept-Encoding Date: Tue, 19 Jul 2016 09:00:11 GMT

a � 45 �V*J-.�)Q�RJK��Q�Q�-Nr�o��|��Sf�X�(�����deh`����X��dU]�� ��� a ��"I 0

is there any workaround?

niweicumt avatar Jul 19 '16 09:07 niweicumt

Hello! "2 b74e51604e001cdcc653b4729547b6f059459f0b 85181613" itself contain metadata: request type, encoded address and request id, and time when it was made. Regarding unreadable symbols, as you can see there is content-encoding gzip. Response body is compressed. And if you manually or in middleware uncompressed it, you will see human friendly response. Do you think it make sense add option to uncompress bodies?

On Tuesday, 19 July 2016, niwei [email protected] wrote:

Thanks for the great software!

we need to be log the data returned (response payload) from web server as well, not just requests, i know that gor can track response with --input-raw-track-response, but it's conten include unreadable code.

For example: 2 b74e51604e001cdcc653b4729547b6f059459f0b 85181613 HTTP/1.1 200 OK Server: Apache-Coyote/1.1 X-Application-Context: application:8082 Content-Type: application/json;charset=UTF-8 Transfer-Encoding: chunked Content-Encoding: gzip Vary: Accept-Encoding Date: Tue, 19 Jul 2016 09:00:11 GMT

a � 45 �V*J-.�)Q�RJK��Q�Q�-Nr�o��|��Sf�X�(�����deh`����X��dU]�� ��� a ��"I 0

is there any workaround?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/buger/gor/issues/340, or mute the thread https://github.com/notifications/unsubscribe-auth/AAA2uUMm8-zfcZRzoQbaHDqB2n0dTR5dks5qXJRSgaJpZM4JPhZy .


Sincerely yours Leonid Bugaev http://gortool.com - test your system with real data

buger avatar Jul 19 '16 09:07 buger

OK, thank u for reply first. I suggest add option to uncompress bodies. Or could you give me an example code (such java) in middleware uncompressed it?

niweicumt avatar Jul 20 '16 02:07 niweicumt