andylong0206 wrote on November 16, 2018:
Hi,
Does anyone know when HTTP POST will be supported on the FreeRTOS_HTTP WebServer (I’m using the PIC32 implementation). My application which uses lots of XML and JSON using GET working perfectly, however now I have a need to use POST for transferring a file to the web server for storage on the filesystem.
The POST is not implemented in FreeRTOS_HTTP_server.c:
static BaseType_t prvProcessCmd( HTTPClient_t *pxClient, BaseType_t xIndex )
{
BaseType_t xResult = 0;
/* A new command has been received. Process it. */
switch( xIndex )
{
case ECMD_GET:
xResult = prvOpenURL( pxClient );
break;
case ECMD_HEAD:
case ECMD_POST:
case ECMD_PUT:
case ECMD_DELETE:
case ECMD_TRACE:
case ECMD_OPTIONS:
case ECMD_CONNECT:
case ECMD_PATCH:
case ECMD_UNK:
{
FreeRTOS_printf( ( "prvProcessCmd: Not implemented: %s
",
xWebCommands[xIndex].pcCommandName ) );
}
break;
}
return xResult;
}
I did investigate and whilst a POST is received, the pxClient buffer is empty.
Any ideas?
Many thanks.