I am sending a HTTP request from a C# windowsform application to PHP server hosted on OpenShift (Redhat). I am using the method POST, with Json data.
The problem is that
PHP's $_POST
does not understand JSON.
What you want is something along the lines of
// Error handling is left as an exercise
$input = json_decode(file_get_contents('php://input'), true);
You should then be able to use $input
the way you seem to want to use $_POST
. See json_decode for additional knobs to twiddle.