HTTP POST with WIP library on SL8082T

Ok so here’s how I’ve sorted mine.

I’m still unsure if my code that finishes off POSTs is tidying up properly - but I have code that checks what’s going on in the beginning of the next POST as a guard.

I had a typo in this and this is why I was getting the problem…

if(http_channel)
	{
		wip_close(http_channel);
		TRACE (( 4, "Tidying up old http channel" ));
		http = NULL;
	}

	if(post_channel)
	{
		wip_close(post_channel);
		TRACE (( 4, "Tidying up old POST channel" ));
		post_channel = NULL;
	}

I close off both the http channel and the post channel before creating new ones. I’m not exactly clear on which I actually need to close and recreate (some need a close/abort/whatever to allow data to be sent) - since there is no state diagram in the user guide for HTTP like there are for other approaches and so I’m not sure if this can be streamlined.

No more WIP_CERR_MEMORY errors, anyway!