Hi Jochen,
Thanx for your efforts. (I wrote this post one before but it
disappeared, so I give it another try).
I changed my code according to your example. I still have the same
problems as before. So I 'trialed and errored' until i came up with
this code:

$config = array(
    'adapter'    => 'Zend_Http_Client_Adapter_Proxy',
    'proxy_host' => '10.40.5.232',
    'proxy_port' => 80
);
$proxiedHttpClient = new Zend_Http_Client(NULL, $config);

$username = 'myuserid';
$password = 'mypassword';

$service = Zend_Gdata_Docs::AUTH_SERVICE_NAME;

try {
        $httpClient = Zend_Gdata_ClientLogin::getHttpClient($username,
$password, $service, $proxiedHttpClient);
        $httpClient->setConfig($config); // I have to the the proxy again, to
make it work
} catch (Zend_Gdata_App_HttpException $httpException) {
        exit("An error occurred trying to connect to the proxy server\n".
$httpException->getMessage()."\n");
}

This is an improvment. I do have to specify a URL, and I do not have
to modify Zend_Gdata_Doc's classes constructor.
Still I have to specify the proxy twice, but I can live with that :)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Docs Data APIs" 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-Docs-Data-APIs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to