'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => $data, ); $ctx = stream_context_create(array('http' => $opts)); $response_body = @file_get_contents($url, false, $ctx); return $response_body; }