Saving HttpRequestResponse to file
I noticed that there's a method called saveBuffersToTempFiles() that says that it allows saving of HttpRequestResponse objects to a file. Is there anymore information on how to use this? I haven't been able to successfully use it. Is there an alternative way to save the state of extensions using this method or a less hacky way without using addToSiteMap()?
What trouble are you having using it? It should transparently save the request and response into a project file, and it works for me.
The temp file is in the user’s temp directory. It sounds like you want to manually write it to a file.
There are a few extensions that save requests/responses to databases, including Elastic Burp and Log Requests to SQLite