PHP 生成的 HTML 文件的内容存储在一个名为的字符串变量中
$output
我正在尝试将 $output 中的内容发送到 CGI 脚本。
我在 PHP 中尝试过以下 CURL ...
$output = "long string, with strange non HTML characters..."
$c = curl_init();
curl_setopt($c, CURLOPT_URL, 'http://www.example.com/cgi-bin/script.cgi');
curl_setopt($c, CURLOPT_POST, true);
curl_setopt($c, CURLOPT_POSTFIELDS, $output);
curl_exec ($c);
curl_close ($c);
...但我只得到了 $output 内容的一小部分。
您对如何将 $output 的内容从 PHP 传递到 CGI/Perl 脚本有什么建议吗?
谢谢!