Hi,
I investigated this and found a problem in the ClientLogin class. It
appears that the ClientLogin class is creating a new instance of the
Zend_Http_Client after authenticating and before returning it.
The easiest way to avoid this, based on your code above, would be to:
$httpConfig = array(
'adapter' => 'Zend_Http_Client_Adapter_Proxy',
'proxy_host' => 'my.proxy.de',
'proxy_port' => 8080,
);
// create the client with the appropriate config
// this client is used to perform the ClientLogin request to
https://www.google.com/accounts/ClientLogin
$client = new Zend_Http_Client('https://www.google.com/',
$httpConfig);
$authenticatedClient = Zend_Gdata_ClientLogin::getHttpClient($user,
$pass, Zend_Gdata_Calendar::AUTH_SERVICE_NAME, $client, 'project-
test-1.0');
// set the proxy config on the client created by the ClientLogin, so
all future
// requests with the client will use the proxy
$authenticatedClient->setConfig($httpConfig);
I've filed this issue in the ZF issue tracker:
http://framework.zend.com/issues/browse/ZF-1920
Let me know how things work out on your end.
Thanks,
-Ryan
On Sep 7, 12:15 am, nuwanbando <[EMAIL PROTECTED]> wrote:
> Am working behind a proxy and when i tried to make a HTTP secure
> connection i get the following error
>
> Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with
> message 'Unable to Connect towww.google.com:80. Error #111:
> Connection refused' in /nfs/www/sensoria/docs/components/
> com_eventmanager/gdata/ZendGdata-1.0.0/library/Zend/Gdata/App.php:409
> Stack trace: #0 /nfs/www/sensoria/docs/components/com_eventmanager/
> gdata/ZendGdata-1.0.0/library/Zend/Gdata/App.php(606):
> Zend_Gdata_App->post('<atom:entry xml...', 'http://www.goog...') #1
> /nfs/www/sensoria/
>
> docs/components/com_eventmanager/gdata/ZendGdata-1.0.0/library/Zend/
> Gdata/Calendar.php(152):
> Zend_Gdata_App->insertEntry(Object(Zend_Gdata_Calendar_EventEntry), 'http://
>
> www.goog...', 'Zend_Gdata_Cale...') #2 /nfs/www/sensoria/docs/
> components/com_eventmanager/eventmanager.php(34):
> Zend_Gdata_Calendar->insertEvent(Object(Zend_Gdata_Calendar_EventEntry)) #3
> /nfs/www/
>
> sensoria/docs/components/com_eventmanager/eventmanager.php(310):
> createEvent(NULL, 'test', 'test123', 'fast', '2006-12-01',
> '2006-12-08', '03:00', '-08') #4 /nfs/www/sensoria/docs/
> index.php(183): require_onc in /nfs/www/sensoria/docs/components/
> com_eventmanager/gdata/ZendGdata-1.0.0/library/Zend/Gdata/App.php on
> line 409
>
> the code i used to connect is..
>
> set_include_path('components/com_eventmanager/gdata/ZendGdata-1.0.0/
> library');
> 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_Calendar');
> Zend_Loader::loadClass('Zend_Http_Client');
>
> $user = '[EMAIL PROTECTED]';
> $pass = 'xxxxxxx';
>
> $client = new Zend_Http_Client('https://www.google.com/',
> array(
> 'adapter' => 'Zend_Http_Client_Adapter_Proxy',
> 'proxy_host' => 'my.proxy.de',
> 'proxy_port' => 8080,
> ));
>
> $authenticatedClient =
> Zend_Gdata_ClientLogin::getHttpClient($user,
> $pass, Zend_Gdata_Calendar::AUTH_SERVICE_NAME, $client, 'project-
> test-1.0');
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data 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-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---