[ 'method' => 'POST', 'header' => 'Content-type:application/json', 'content' => $json ]]; $context = stream_context_create($options); $response = file_get_contents($url, false, $context);