Host Engineering Forum

General Category => Do-more CPUs and Do-more Designer Software => Topic started by: ATU on June 07, 2021, 01:39:00 PM

Title: Responding to an HTTP Post
Post by: ATU on June 07, 2021, 01:39:00 PM
How would I write a program to  receive data from an HTTP POST from another device?
Title: Re: Responding to an HTTP Post
Post by: BobO on June 07, 2021, 02:17:28 PM
How would I write a program to  receive data from an HTTP POST from another device?

The HTTPCMD instruction allows you to specify the POST command. All commands consist of a request and response, so if you want the contents of the response, you just provide a buffer for the response and we will return it. Is that what you are asking?
Title: Re: Responding to an HTTP Post
Post by: ATU on June 07, 2021, 02:51:41 PM
Another device will initiate a POST to the BRX. 
Title: Re: Responding to an HTTP Post
Post by: BobO on June 07, 2021, 03:28:30 PM
Another device will initiate a POST to the BRX.

The BRX server doesn't support POST, only GET, and only to read the server, the file systems, or the REST API.