PHPで簡単にPOST送信

<?php
$url = 'http://www.php.net/search.php';
$data = array(
    'pattern' => 'htmlspe',
    'show' => 'quickref',
);
$options = array('http' => array(
    'method' => 'POST',
    'content' => http_build_query($data),
));
$contents = file_get_contents($url, false, stream_context_create($options));
?>

ネタ元