Support Center

Burp Community

See what our users are saying about Burp Suite:

How do I?

New Post View All

Feature Requests

New Post View All

Burp Extensions

New Post View All

Bug Reports

New Post View All
Documentation

Burp Suite Documentation

Take a look at our Documentation section for full details about every Burp Suite tool, function and configuration option.

Full Documentation Contents Burp Projects
Suite Functions Burp Tools
Options Using Burp Suite
Extensibility

Burp Extender

Burp Extender lets you extend the functionality of Burp Suite in numerous ways.

Extensions can be written in Java, Python or Ruby.

API documentation Writing your first Burp Suite extension
Sample extensions View community discussions about Extensibility
Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

How to retrieve only body of response

Reconnect Oct 24, 2017 11:35AM UTC

Hello team

I am making http requests to a site and how to get only body of the response.

here is the code :-

req = self._helpers.buildHttpMessage(headers, body)
print self._helpers.bytesToString(req)
resp = self.callbacks.makeHttpRequest("127.0.0.1", 1330, True, req)
print self._helpers.bytesToString(resp)

I have tried to get body by resp.getResponse() but it didnt work,


Paul Johnston Oct 24, 2017 12:38PM UTC Support Center agent

Hi Reconnect,

First use IExtensionHelpers.analyseResponse to get and IResponseInfo object. This has a getBodyOffset() method, and you can use that with Python string splicing.

Please let us know if you need any further assistance.


Post Your public answer

Your name
Your email address
Answer