The Burp Suite User Forum was discontinued on the 1st November 2024.

Burp Suite User Forum

For support requests, go to the Support Center. To discuss with other Burp users, head to our Discord page.

SUPPORT CENTER DISCORD

Extract Response Message Body

Amit | Last updated: Dec 30, 2015 09:29AM UTC

Hey , I am making my first extension using Java in NetBeans, and I need to extract the message from the Response so that I can perform my operations over it. But after checking the examples and other javadocs , I was unable determine how to do it. Kindly, let me know how can I extract the message from the response??

PortSwigger Agent | Last updated: Dec 30, 2015 10:27AM UTC

There are methods in IExtensionHelpers to analyze a raw response and obtain an IResponseInfo object that includes the offset of the message body: https://portswigger.net/burp/extender/api/burp/IExtensionHelpers.html Given the raw response buffer and the body offset you can do an array copy to create a buffer containing only the body part, if that is what you want.

Burp User | Last updated: Dec 30, 2015 10:40AM UTC