FreeRTOS Http Web server POST support

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.

abhijit-AWS wrote on November 21, 2018:

Hello
Amazon FreeRTOS repo does not have HTTP server code; and at this time we don’t have any plans to support it. You may want to check SourceForge forums, where HTTP server code is available.
Thanks,
Abhijit

andylong0206 wrote on November 21, 2018:

Thank you for the info.