How do you pass $_POST values to a page using cURL?
$_POST
cURL
Another simple PHP example of using cURL:
Example found here: http://devzone.co.in/post-data-using-curl-in-php-a-simple-example/
Instead of using curl_setopt you can use curl_setopt_array.
curl_setopt
curl_setopt_array
http://php.net/manual/en/function.curl-setopt-array.php