0
私たちは現在、私たちのサーバー上のURLにxmlポストバックのためにUltracartを使用しています。私がしようとしているのはxmlを受け取り、右折して別のページに投稿することです。 (私たちは、トラブル我々が取り組んでいるプロジェクトのために複数のソースにポストバックを送信したた。)ここで私がプレーしてきたものです:私はここで重要な何かが欠けている知っているrepost xml別のURLにポストバック
$xml = file_get_contents('php://input');
$url = 'https://destinationlink';
$post_data = array(
"xml" => $xml,
);
$stream_options = array(
'http' => array(
'method' => 'POST',
'header' => "Content-type: application/x-www-form-urlencoded\r\n",
'content' => http_build_query($post_data),
),
);
$context = stream_context_create($stream_options);
$response = file_get_contents($url, null, $context);
... I私はそれをあまりにも長く見てきたと思うし、私は問題を見ることができない...おそらく何かばかげた単純な。