【发布时间】:2010-09-29 06:04:21
【问题描述】:
我正在使用Zend_Rest_Client 连接Zend_Rest_Server,一切似乎都很好,但是当我尝试从服务器上连接get() 时,我收到了这个错误:
Zend_Http_Client_Adapter_Exception: 无法连接到 tcp://localhost:80。错误 #10060:A 连接尝试失败,因为 关联方没有正确 一段时间后回复,或 建立连接失败,因为 连接的主机未能响应。 在 C:\www\zf_1_72\library\Zend\Http\Client\Adapter\Socket.php 在第 148 行
这是我使用的代码
$client = new Zend_Rest_Client('http://localhost/my_application/api/index/');
$client->auth($key);
$result = $client->get();
谢谢你的建议
【问题讨论】:
标签: php zend-framework localhost zend-rest