2009-01-02 18 views
1

J'utilise Zend_Rest_Client pour se connecter Zend_Rest_Server, tout semble bien se passer, mais lorsque je tente d'obtenir() du serveur je reçois cette erreur:Zend_Rest_Client - erreur sur localhost

Zend_Http_Client_Adapter_Exception: Unable to Connect to tcp://localhost:80. Error #10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\www\zf_1_72\library\Zend\Http\Client\Adapter\Socket.php on line 148

est le code ici, qui J'utilise

$client = new Zend_Rest_Client('http://localhost/my_application/api/index/');  
$client->auth($key); 
$result = $client->get(); 

remercient pour tout conseil

Répondre

3

This thread suggetss la question peut être le « localhost » nom - essayer d'utiliser 127.0.0.1 à la place.