ユーザーが私のサイトに登録した後、ユーザーを touchnet の upay サイトにリダイレクトしようとしています。だから、これは私のサイトがどのように見えるかです:
Registration.php
|This is where the user will register for an account along with providing their information
Insert.php
|This is the script that will take all the data posted from `Registration.php`'s form and insert them into the database. But it is also the script that will send the user to the payment page
touchnet
|This is the site that will receive the posted data from `Insert.php` and take care of payment.
だからここに私のカール設定があります:
$url='https://secure.touchnet.com:*/Something/*/*.jsp';
//open connection
$ch = curl_init();
//set the url, number of POST vars, POST data
curl_setopt($ch,CURLOPT_URL, $url);
curl_setopt($ch,CURLOPT_POST, true);
curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, false);
//execute post
$result = curl_exec($ch);
//close connection
curl_close($ch);
しかし、挿入がデータの挿入を終了し、curl を使用してリダイレクトすると、実際にはwww.domain.com/Something/tapp
私www.domain.com
の Web サイトである に移動します。そして、ブラウザーは/Something
見つかりませんと表示します。これは明らかに、正しい URL にアクセスすることさえできないためです。cURL が適切な URL にリダイレクトできないのはなぜですか?