HTTPD - Alternative File Types - XML etc
Brought to you by:
butok
Hi,
I have need to produce a dynamic xml output and couldn't find a simple way of modifying the output headers add in the "Content-Type: application/xml" required.
For the moment, I've added in a crude hack to the .cgi code so as to add in the headers. It would be nice though to have an option in the .cgi code to be able to include custom header info.
Cheers,
Colin
Hi Colin,
If I understand well you just need to send XML file on cgi request.
You can do it using registered CGI call-back functions (struct fnet_http_cgi) =>they are fully your application code, so you may do whatever needs your application - insert headers and other things (in your call-back functions) and without modifications in FNET HTTP server.
Please tell me if you need something other, or you have source code => it can be added to FNET if you think it is useful for others users.
Thanks,
Andrey Butok