I am writing a CGI program (in C++) that will output the following data in its response:
- (inline) GIF image (i.e. octect stream)
- JSON
- Javascript
- XHTML
All the CGI examples I have seen are "trivial" and return only one data type. How can I return a response that contains all of the above ?