用PHP实现 对接调用httpavhostgaypcphp这个接口获取输出的文件地址然后跳转
"value1",
"param2" => "value2"
);
$options = array(
'http' => array(
'header' => "Content-type: application/x-www-form-urlencoded\r\n",
'method' => 'POST',
'content' => http_build_query($data),
),
);
$context = stream_context_create($options);
$result = file_get_contents($url, false, $context);
$file_url = trim($result); // 获取输出的文件地址
header("location:" . $file_url); // 跳转到文件地址
?>
原文地址: https://www.cveoy.top/t/topic/b87q 著作权归作者所有。请勿转载和采集!