Other Parts Discussed in Thread: CC3200
I'm porting an app from CC3200 to CC32xx SDK (latest version up to date).
The old CC3200 SDK/NWP used to process GET as well as POST tokens for files in /www/ folder in SFFS using the same SimpleLinkHttpServerCallback function.
The new CC32xx SDK/NWP calls this callback function only for GET requests. For POST requests, another SimpleLinkNetAppRequestEventHandler gets called with a complete HTTP request metadata/payload as param (I have to tokenize it myself then). This itself is not a problem, the problem is that for using SimpleLinkNetAppRequestEventHandler, I have to keep the
#define slcb_NetAppRequestHdlr SimpleLinkNetAppRequestEventHandler
which increases the g_StatMem global struct size proportionally to SL_ASYNC_HTTP_SRV_EVENT_LEN * MAX_CONCURRENT_ACTIONS ((1600-220) * 5 = 6900 bytes).
This looks to me like an absolute overkill in terms of memory consumed.
When looking at "Figure 9-6" in "220.127.116.11 Static Pages With Host Tokens" from swru455l.pdf, it is indeed documented only for GET requests.
But I also see in source/ti/drivers/net/wifi/source/netapp.c, function
_SlReturnVal_t _SlNetAppEventHandler(void* pArgs)
Which hints me that at least SL driver is aware of this feature, not sure about NWP.
So my question is: is host POST token processing really supported or not?