How can I get response body as bytes array

112 views
Skip to first unread message

Kfir Ilani

unread,
Aug 19, 2018, 2:20:33 PM8/19/18
to OWASP ZAP User Group
When using core.messages(), I get responses in Unicode. I have suspicion that this convert corrupt response body data
Is there a way to get the response as byte array?

Thanks

Kfir Ilani

unread,
Aug 20, 2018, 3:31:56 AM8/20/18
to OWASP ZAP User Group
I am asking cause i have an issue that response body returned with a lot \ufffd and it seems corrupted. So i think maybe something is wrong when ZAP read response

Can someone help please?

Simon Bennetts

unread,
Aug 20, 2018, 6:03:02 AM8/20/18
to OWASP ZAP User Group
Have you tried accessing the messages by the har methods, eg messageHar(id) or messagesHar(baseurl, start, count) ?

Kfir Ilani

unread,
Aug 20, 2018, 6:36:28 AM8/20/18
to OWASP ZAP User Group
Thanks for your reply, I tried it and get same result. the \ufffd still there.

Any other suggestions?
Reply all
Reply to author
Forward
0 new messages