I need to know how to have PHP Storm catch a HTTP POST request when a remote service sends a request to my server. Background:
I am using an SMS service called Clickatel. When a customer responds to a sms message, Clickatel sends a response to a script I wrote called sms_response.php. The problem I am running into is I don't know the contents of what they are sending. I want to catch the POST request using PHP debugging. Ideally, I can see the entire message. I know the script I wrote is getting called because it logs a hard coded message to a logfile. I am having trouble reading the contents because I don't know the variables being sent.
Maybe an easier question is this: How can I parse all the contents of a HTTP POST when I don't know the names of the variables. The $_POST and $_GET variables appear to be empty. I've also tried printing the values of the $_SERVER variable using a foreach loop, but that seems empty too.
Any ideas? What am I brain-flutzing about?