How to decode gzip response body?


(junho lim) #1

Can Packetbeat decode gzip body?

"response": {
"phrase": "OK",
"headers": {
"content-length": 307,
"content-type": "application/json;charset=UTF-8"
},
"body": "\u001f�\b\u0000\u0000\u0000\u0000\u0000\u0000\u0003m�MN�0\u0010��=E�5�\u0010�*p\u0005\u0016p\u0003�$�a;Ůˢ�\u0002A%\u000e�H\b\t�\u001c�\u000b��{\u0007�n\t\t�&������YO�����@��d�\u0011Ƴ�|�e\tL�‡�\nq\u0012z0U1\tTգ�\u0004y\u0003�X9Xu���i�/��UY��V��Ny�R��W�5��\u001a*^�ؕX��r�f\u0017E,-\u0019W4Lߍ�gE�ޘ��̲ӳ�y7\n�<�Z\u0014t�������\u001fԿ\u001c��\u0011��k_�7��}u�_�m��w��q�����}l��\r7�\u001f\u0015=\u0017�.�\u0000�%��Z-\"=��\u0000?��?*�\bXAL\u001b�1\n�[>�\u001dM8����D�18W���\fD��"�\u001aIӔL�\u001f\f��v�\u0002\u0000\u0000",
"code": 200
}


(Adrian Serrano) #2

No, currently packetbeat doesn't decode Content-Encoding or Transfer-Encoding, except for chunked.

It is a nice feature to have, though. Do you mind opening a feature request?


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.