Like Michael here https://sourceforge.net/p/freertos/discussion/382005/thread/72bd7781/ I also need a way to deliver data as dynamically created JSON objects and to embed placeholders in HTML files. uIP had CGI routines for that.
Basically what happend there was, that if a requested file had a specific ending (.shtml), instead of just serving the file as-is, it was scanned for placeholders like
%! foo. Content up to the placeholder was send, then the script associated with the placeholder was executed and the return was send, then the rest of the file was processed.
I am planning to implement a similar logic, since it should be easy to call FreeRTOS_send() multiple times.
I am aware of the ipconfigHTTP_HAS_HANDLE_REQUEST_HOOK, which will be usefull to analyse GET parameters to answer requests like
As soon as I have some code I will append it here, but I’m already up for comments and feedback.