更新时间:2023-11-27 22:13:46
只要能读就可以了。
curl_setopt($ch, CURLOPT_POSTFIELDS,array('data'=>$send_xml));
然后
print_r($_POST['data'])
像这样:
$data = array(
'request' => array(
'session' => array(
'user'=>'exampleuser',
'pass'=>'examplepass')
)
);
$sendreq = sendRequest("http://sitename.com/example.php",$data);
在example.php
In example.php
print_r($_POST)