I need to save the data from the form, and then send the user to pay to the bank, do this:
$url="http://site.com"; $ch = curl_init($url); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_POST,1); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/x-www-form-urlencoded; Content-Length:".strlen($postData).";")); curl_setopt($ch, CURLOPT_USERAGENT,"Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1); curl_setopt($ch, CURLOPT_REFERER, $url); curl_setopt($ch, CURLOPT_FOLLOWLOCATION,true); curl_setopt($ch, CURLOPT_COOKIEFILE, ''); $html=curl_exec($ch); if (FALSE === $html) throw new Exception(curl_error($ch), curl_errno($ch)); $redirectURL = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL); curl_close($ch); I think so (because I didn’t have a special deal with cURL before) to redirect to the landing page, but instead just the content of the page is returned. There are no safe_mode and open_basedir settings on the server. What am I doing wrong?