Output large string from xmem to CGI

Hi All,

I’m trying to create a large debug buffer in xmem (as I’m very close to running out of root memory), and have a CGI handler that would send the contents of this buffer back to the browser as a string. All the CGI functions such as cgi_sendstring only seem to operate with root memory however. Any ideas on how I can send back data from xmem via CGI?