It is possible to receive data (POST) from an external server?


#1

Hi,

I have this scenario:

  1. One external server send data using POST (some data is JSON and other is binary)
  2. I must have a receiver server that take the data make some parse and translate the binary data and send the data to a MySQL database.

Could use dreamfactory for that scenario?

Thanks in advance for the guide.


#3

You could create a server-side script that accepts a POST and then performs the necessary work via the local services. Here is an example.

You will need to make sure your CORS configuration allows requests from the address sending the data and also that the POST requests include the API key and a session token (see this tutorial)

You can generate a “forever” session token to avoid having to re-authenticate your remote sender.


#4

Thanks, I will do what you suggest.