array( 'method' => 'POST', 'content' => $data, )); if ($optional_headers !== null) { $params['http']['header'] = $optional_headers; } $ctx = stream_context_create($params); $response = @file_get_contents($url, false, $ctx); if ($response === false) { print "Problem reading data from $url, No status returned\n"; } return $response; } ?>