curl_setopt($ch, CURLOPT_POSTFIELDS, file_get_contents("php://input"),$POSTFIELDS);
如何将此脚本file_get_contents与POSTFIELDS集成在同一行上
您可以连接数据,使用. "&" . $POSTFIELDS
:
$POSTFIELDS = "[email protected]&token=1234";
curl_setopt($ch, CURLOPT_POSTFIELDS, file_get_contents("php://input") . "&" . $POSTFIELDS);