您可以使用cURL库发布数据:http :
//www.php.net/curl
$ch = curl_init();curl_setopt($ch, CURLOPT_HEADER, 0);curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);curl_setopt($ch, CURLOPT_URL, "http://websiteURL");curl_setopt($ch, CURLOPT_POST, 1);curl_setopt($ch, CURLOPT_POSTFIELDS, "XML=".$xmlcontent."&password=".$password."&etc=etc");$content=curl_exec($ch);
postfield包含您需要发送的XML的位置-您将需要为API服务(我猜是Clickatell)期望的postfield命名



