How to retrieve only body of response
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)
resp = self.callbacks.makeHttpRequest("127.0.0.1", 1330, True, req)
I have tried to get body by resp.getResponse() but it didnt work,
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.