Based on your comments, it sounds like you're trying to simulate the submission of this form within the current request. I'm not sure if you can do that with cURL - I think each invocation of your PHP script executes independently, so the global variables from the current run of the script wouldn't be shared by the run which handles the cURL request.
The way I'd handle this would be to create a function to handle the form submission:
function handle_form($postdata) {
// whatever you would normally do, just replace $_POST with $postdata
}
// to handle a normal form submission:
handle_form($_POST);
This way, you can simulate a submission of the form by just creating an array with the form field values:
$formvals['fieldname1'] = 'fieldvalue1';
$formvals['fieldname2'] = 'fieldvalue2';
and calling
handle_form($formvals);