Hi all!
I need some help with posting to a secure URL via curl. It all seems to work but the problem is that I need to be forwarded to the remote url. The way it works now, I am still on my site with curl pulling in the remote page. Is it possible for curl to post to a remote url and have it act just like you submitted a form to the remote url?
Is there an option to do this or am I just SOL on this?
//Use CURL to send post data to PayPal
$ch = curl_init(); //Initialize the curl session
curl_setopt($ch, CURLOPT_URL, "https://www.paypal.com/cgi-bin/webscr"); //Remote URL
curl_setopt($ch, CURLOPT_VERBOSE, 1); //Use Verbose mode
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); //Follow headers
curl_setopt($ch, CURLOPT_POST, 1); //Send a HTTP POST
curl_setopt($ch, CURLOPT_POSTFIELDS, $postData); //Post data
curl_exec($ch); //Execute it
curl_close($ch); //Close the curl session