Hi Lasse,

I had a few minutes to take a closer look at this. You don't need to
modify the constructor of the service class. I wrote this up in a
quick blog post. Let me know if that helps:

http://gdatatips.blogspot.com/2008/09/using-php-client-library-through-proxy.html

Thanks
- Jochen


On Sep 17, 1:32 am, Lasse <[EMAIL PROTECTED]> wrote:
> Hi Jochen,
> I can wait on the enhancements. My idea is to use Google Docs as an
> alternative report distribution system for a Business Intelligence
> application. This is a new feature which I do not know the value of,
> but I think the concept is cool.
>
> I do not wish to convert my Goole Docs to Excel. But I want to pass
> the physical document so I have full control over it. But I begin to
> realize that this is not what GDocs is about. A GDoc is a URL. My
> thinking is probably a bit out of date. Some years ago I saved copies
> of important documents on floppies, it made me feel more safe.
>
> By the way I also plan to implement a GDocs Web Viewer to our BI app.
> Using Google App engine as platform is something I will look at. No
> own physical infrastructure at all, just a running application it's an
> interesting idea.
>
> --------------------------------------------------------------------------------------------
>
> If I do not modify Zend_Gdata_Doc's classes constructor this happens:
>
> Unable to Connect to tcp://docs.google.com:80. Error #110: Connection
> timed out
>
> Fatal error: Uncaught exception 'Zend_Gdata_App_HttpException' with
> message 'Unable to Connect to tcp://docs.google.com:80. Error #110:
> Connection timed out' in /home/tooljn/PHPZF/ZendFramework-1.6.0/
> library/Zend/Gdata/App.php:485
> Stack trace:
> #0 /home/tooljn/PHPZF/ZendFramework-1.6.0/library/Zend/Gdata.php(203):
> Zend_Gdata_App->performHttpRequest('POST', 'http://docs.goo...',
> Array, '1,2,3,4?5.6.7.8...', 'text/csv', NULL)
> #1 /home/tooljn/PHPZF/ZendFramework-1.6.0/library/Zend/Gdata/
> App.php(636): Zend_Gdata->performHttpRequest('POST', 'http://
> docs.goo...', Array, '1,2,3,4?5.6.7.8...', 'text/csv')
> #2 /home/tooljn/PHPZF/ZendFramework-1.6.0/library/Zend/Gdata/
> App.php(692): Zend_Gdata_App->post(Object(Zend_Gdata_App_MediaFileSource), 
> 'http://docs.goo...')
>
> #3 /home/tooljn/PHPZF/ZendFramework-1.6.0/library/Zend/Gdata/
> Docs.php(263): 
> Zend_Gdata_App->insertEntry(Object(Zend_Gdata_App_MediaFileSource), 'http://
>
> docs.goo...', 'Zend_Gdata_Docs...')
> #4 /home/tooljn/PHPZF/ZendFramework-1.6.0/library/Zend/Gdata/
> Docs.php(244): Zend_Gdata_ in /home/tooljn/PHPZF/ZendFramework-1.6.0/
> library/Zend/Gdata/App.php on line 485
>
> I think there is a bug in:
> $httpClient = Zend_Gdata_ClientLogin::getHttpClient($user, $pass,
> $service, $client);
> I do not think it saves the proxy definition in $client, so I have to
> manually save it. And I do it with my modification of Zend_Gdata_Doc's
> classes constructor.
>
> ---------------------------------------------------------------------------------------------------------
>
> If I have to go through a proxy I have to run:
>
> $client = new Zend_Http_Client('http://www.google.com:443', $config);
>
> and I cannot run Zend_Http_Client without specifying a URL.
> and then I supply my proxy definition in:
>
> $httpClient = Zend_Gdata_ClientLogin::getHttpClient($user, $pass,
> $service, $client);
>
> If I do not have a proxy I just run:
>
> $httpClient = Zend_Gdata_ClientLogin::getHttpClient($user, $pass,
> $service);
>
> without specifying a URL
>
> ----------------------------------------------------------------------------
--~--~---------~--~----~------------~-------~--~----~
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