Hi, Jochen,
thanx for your efforts. I changed my code according to your example.
I still have a problem with the proxy. I 'trialed and errored' and
finally come up with this code. I still have to specify the proxy
twice, but now I do it in my code, and I specify NULL as URL in the
'new Zend_Http_Client(NULL, $config);' call.

$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 = 'mymailaddress';
$password = 'mypassword';
$service = Zend_Gdata_Docs::AUTH_SERVICE_NAME;

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

I think this code is allright, exept for '$httpClient-
>setConfig($config);' , but I can live with that :)

Up till now I uploaded a CSV file. Is there any other formats I can
use? Lets say I want to insert graphics or a special font for a cell
etc?



--~--~---------~--~----~------------~-------~--~----~
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