php中如何使用curl写一个测试程序,测试路径为:http:/server/get.php?appid=9&appver=200&client=1
------解决方案--------------------
- PHP code
$ch = curl_init("http:/server/get.php?appid=9&appver=200&client=1") ; curl_setopt(?$ch, CURLOPT_RETURNTRANSFER, true) ; curl_setopt(?$ch, CURLOPT_BINARYTRANSFER, true) ; $output=curl_exec($ch); echo $output; curl_close($ch) ;