first of all, very nice project guys. Congratulations.
Secondly: I’m trying to use HTTP integration towards a simple Apache PHP local server, for testing purposes.
My problem is that my endpoint gets called correctly but recieves no POST data. PHP tells $_POST is an empty array. I was expecting the payload in POST, shouldn’t I? Endpoint gets called, as Lora App Server console confirms:
I don’t have any PHP experience so I can’t review if your code is correct. Could you test with for example Postbin: http://postb.in/? If you see the payload there, then at least you have isolated the issue to your PHP code.
Great @stelios, you just hit the point. Jackpot!
My error was to expect PHP to automatically parse $_POST data from JSON string. Parsing raw data from input did the trick.
By the way “Content-Type” was “application/json” indeed.