anyproxy https抓取到的post请求参数有buffer类型的,如何解析?

clj7thdc  于 2个月前  发布在  其他
关注(0)|答案(2)|浏览(31)

Plese fill the template when you reporting a new issue, thanks!

anyproxy捕获到的https的post请求下的form的数据下有buffer类型的,无法解析
已经确认证书已经都安装了

代码片段:
let requestDataBuff = requestDetail.requestData.toString();
console.log(requestDataBuff);

Which platform are you running AnyProxy

Windows

The version of the AnyProxy

4.0.12

Your expected behavior of AnyProxy

能解析出requestDetail.requestData中buffer的内容
{
“xxx”:"yyy",
"zzzz":"ppp",
}

The actual behavior of AnyProxy

� �VKs�0��5ěC�N���BZ@�����W��)�i2=�Љdz�w�]��[a�+nvq��m�c��w��YE���\��5��S�d�갨���ߝ|������Dt7�V@��� ɡ��7kL8���童�F��a5���,σ&��l_c0ί\�8]1܍BHf�K]o2#��G�B�F(� ��]���f�D#��&ڂ���V�� �Q�@j�����ܤ�\P�I�G�Am�؋��Q�#(}��)�r-ZFf�-�[[׬� �n��%���� ̼0|������O���s�� ^��Vi�Wy��i��:�Y�u���A�e���x��b�Q�=���'�B1�2��lK��<��T���p�2����K���s=ݠ)}�������m�׶�j���/�z\ Ϙ�����}�A�e��$GI\�8ť_������� ���������Qp��U��4 ��s�5���%5�8~� �t�!n�,L"/�3��E�ľr��N�w�������zᇓ� ����;e�%�z����y�S��z���
����^�+S �t �.�7R����r��t�����?�X��$(K���,Jk�FU�@D9d4e�.�8�웂����H_�L/��at��m

The log of the error
3qpi33ja

3qpi33ja1#

@GitDzreal93
Buffer是通用的格式类型,在post时你的content-type是怎么样的? 也许需要在rule中处理从buffer-> json的转换,你可以用content-type的类型转换为关键字来搜索一下相应的node库或者方法

unguejic

unguejic2#

'Content-Type': 'multipart/form-data; boundary=----WebKitFormBoundarym1NTUJTLBLcX6LKb'
还有文件类型的数据,请问怎么解析?

相关问题