如题。我的问题是,当Asterisk的服务启动后,我在浏览器的地址栏中输入http://localhost:8088/asterisk/rawman?action=login&username=foo&secret=bar,就会有信息返回,如下,Response: SuccessMessage: Authentication accepted.它的意思是,在asterisk的服务中,有用户foo存在,则返回成功信息。
那么,这段返回的信息我怎样才能接收到?
那么,这段返回的信息我怎样才能接收到?
具体看PHP手册上的例子。
$fp = fopen("example_homepage.txt", "w");curl_setopt($ch, CURLOPT_FILE, $fp);
curl_setopt($ch, CURLOPT_HEADER, 0);curl_exec($ch);
curl_close($ch);
fclose($fp);
?>