For example, properly formatted would look something like this (I just did a var_dump on incoming POST request):
array(1) {
["fred"]=>
string(6) "barney"
}
But what if I sent badly formatted/mangled data, like the naked string "test"?
This is what I'm trying to capture. I'm sending it with the postman chrome extension. My script dumps all of POST into a log file, but since it's just the word "test", it doesn't show up. How would I capture this and all other cases of data sent to my script?