时间:2021-07-01 10:21:17 帮助过:31人阅读
$file = array("audio"=>"@E:/POSTSTREAM/s.amr");//文件路径,前面要加@,表明是文件上传.
$curl = curl_init("http://xxx.xxx.xxx.xxx:xxx/ddppls/PostStream.aspx?pack={1411}{615044}{7348}{534310}");
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl,CURLOPT_POST,1);
curl_setopt($curl,CURLOPT_POSTFIELDS,$file);
$response= curl_exec($curl);
curl_close($curl);