摘要://取得一个Zend_Http_Client对象,并进行配置$client = new Zend_Http_Client( 'http://example.org', //目标主机 array( 'maxredirects' => 0, 'timeout' => 30 //链接超时时间 ));//发送HTTP请求,并将返回的数据保存到$response$response = $client->request(); //默认为GET方法,可以在request()函数中指定发送请求的方法。//$response = $client-
阅读全文