Nodejs sends http post. How does the interface get the data

  node.js, question
var http=require('http');
 
 var body = {
 "data":{
 "id" : id,
 "zjCount" : zjCount,
 "number" : number
 bracket
 };
 
 var bodyString = JSON.stringify(body);
 
 var headers = {
 'Content-Type': 'application/json',
 'Content-Length': bodyString.length
 };
 
 var options = {
 host: '127.0.0.1',
 port: 80,
 path: '/admin778899.php/api/kaijiang',
 method: 'POST',
 headers: headers
 };
 
 var req=http.request(options,function(res){
 
 res.setEncoding('utf-8');
 
 var responseString = '';
 
 res.on('data', function(data) {
 ResponseString plus = data;
 log(data);
 });
 
 res.on('end', function(res) {
 //The parameters received here are strings and need to be formatted into json format for use.
 //var resultObject = JSON.parse(responseString);
 log(res);
 });
 
 req.on('error', function(e) {
 // TODO: handle error.
 log('-----error-------',e);
 });
 });
 req.write(bodyString);
 req.end();

The interface is written in PHP, I don’t know how to get what I want.bodyString?

The question here is: PassnodejsTo call php interface, post a piece of data in the past, how to get this piece of data in php inside?

If so, it can be obtained by the following codebodyString

$bodyString = file_get_contents('php://input')

If you want json, decode it

$data = json_decode(file_get_contents('php://input'), true);