メインと外部の 2 つのサイトがあります。メイン サイトでは、Lucene を使用して検索しています。問題は、外部サイトも検索しようとしていることです。
外部サイトの Form アクション:
<form action="https://secure.bcchf.ca/SuperheroPages/searchResults.cfm?Event=WOT" method="post" name="search_tribute" >
curl を使用しようとしましたが、実際に検索を実行せずに検索フォームを表示するだけです (フィールドも空です)。
<?php
$ch = curl_init("https://secure.bcchf.ca/SuperheroPages/searchResults.cfm?Event=WOT");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, tname='hello');
$output = curl_exec($ch);
echo $output;
curl_close($ch);
?>
任意のヒント?
外部サイトにあるため、フォーム アクションにアクセスできません。私が持っているのは、送信時にリンクするフォームだけです。