Streaming CGI

Can a simple CGI generate its response in stages? I am sending information back on 32 devices, and I don’t want to have to make one giant buffer and use cgi_sendstring() in one step. Each device status is around 500 bytes.

What I was hoping I could do is send in one status at a time and keep returning CGI_OK until the very last one, then return CGI_DONE. But that mechanism seems to only be applicable to uploads, and I’m trying to do a simple GET.

I could just write to the socket like:

for(int i=0; i<32; i++) {
/* write data for this device to socket /
now what - call tcp_tick? */

or maybe I could do the same thing with cgi_sendstring() ?

I’m not really sure how to proceed.

Good morning, This is somethign that needs more research. Please email tech support at