When I'm trying to retrieve all contacts from a Gmail acc I'm getting
the following error:

Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with
message 'Unable to Connect to ssl://www.google.com:443. Error
#249486040: Unable to find the socket transport "ssl" - did you forget
to enable it when you configured PHP?' in Z:\home\cent.com\www\library
\Zend\Gdata\ClientLogin.php:140 Stack trace: #0 Z:\home\cent.com\www
\demos\Zend\Gdata\Gmail.php(73): Zend_Gdata_ClientLogin::getHttpClient
('[email protected]', 'password', 'cp') #1 {main} thrown in Z:\home
\cent.com\www\library\Zend\Gdata\ClientLogin.php on line 140

Here is the phpinfo() result:
Apache Version  Apache/2.2.4 (Win32) mod_ssl/2.2.4 OpenSSL/0.9.8d PHP/
5.2.4
Loaded Modules  * mod_rewrite mod_setenvif mod_userdir mod_ssl
mod_php5

And the actual code:
require_once 'Zend/Loader.php';

Zend_Loader::loadClass('Zend_Gdata');
Zend_Loader::loadClass('Zend_Gdata_AuthSub');
Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
Zend_Loader::loadClass('Zend_Gdata_HttpClient');

$client = Zend_Gdata_ClientLogin::getHttpClient
("[email protected]","passworf", "cp");
$gdata = new Zend_Gdata($client);
$query = new Zend_Gdata_Query('http://www.google.com/m8/feeds/contacts/
default/full');

$query->setMaxResults(100);
$feed = $gdata->getFeed($query);

foreach ($feed as $entry) {
 $XMLContent = $entry->getXML();
 print_r( $XMLContent );
}

SSL seems to be on, the code is OK too. Any ideas where is the
problem?
Thank you!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Contacts API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-contacts-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to