Author: Ing. Angel Leon
Function: postHttps($url,$params)
Given the full URL of the Target and The Params it
will POST the params even
if passing an HTTPS URL.
Returns whatever the URL returns.
function postHttps($url,$params) {
$ch = curl_init ($url);

curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $params);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);

$result = curl_exec ($ch);
curl_close ($ch);

return $result;
} //end postHttps

//Sample of usage.
//Suppose you want to submit credit card information and your merchant
//loggin and password, but you dont want ur login and password to be
on the
//HTML form as hidden fields... you need a script that posts all
//this information directly to the ending cgi/dll/script through

$params='cc=33442342323&cc_exp_date=0304&amount=15 0&merchant_login=our_login&merchant_password=our_p assword';

postHttps($url,$params); //LISTO!!!

By Angel Leon