CURLOPT_POSTFIELDS内容未传递给远程脚本

Looking for clues why the $_POST variables are not showing up in the remote script as they should. Have exhaustively scroured multiple online resources and tried all the standard suggestions - urlencoding the passed string, passing an array, etc. But the $_POST array stays empty.

be sure you add CURLOPT_POST, otherwise it wont't work

curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFILED, 'fields=here&more=fields');