Handling posted data from external source
Posted on 2013-06-24
One of my service provides (SMS message) send me the text received via the SMS message by posting the data to my own service, where I need to process it.
Although they POST the data to me, there is only GET data available for me, as it obviously is retrieved from the query string. Printing out the $_POST variable results in an empty array, and the $_GET array has all the data that they send to me.
The provider says they get errors because I am dealing with the data as GET, and that I should change this to post. I am at a loss to implement what needs to be done here - or even if there *is* something that can be done.
My service provider's answer: "I’ve taken a look into this with our third line support team and it seems the problem relates to the POST nature of our handout and your platforms expectation of a GET handout. If I run a test using GET I get a HTTP 200 response from your platform but when testing the POST method I get a HTTP 500. Are you able to change your platform to expect the POST method? "
What do I do to get this problem working?