Burp Suite User Forum

Create new post

byte[] to IHttpRequestResponse

manuel | Last updated: Nov 16, 2016 02:02PM UTC

Hello, I have two byte arrays with a HTTP request and response, and I would like to create a IHttpRequestResponse containing them both, I have been trying to do it with no success, could someone help me please? Thank you

PortSwigger Agent | Last updated: Nov 16, 2016 04:33PM UTC

Create your own class that implements IHttpRequestResponse. Create fields for all required values, and return these in your implementation of the getter methods. Pass the field values in via the constructor and assign them to the fields.

Burp User | Last updated: Nov 16, 2016 08:41PM UTC

Hi Manuel, I've added a basic implementation of IHttpRequestResponse to the burp-suite-utils package on GitHub: https://github.com/augustd/burp-suite-utils It's not yet released to Maven Central but it's there if you need it. There is an ICookie implementation as well. P.S. Send pull requests!

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.