[Libreoffice] Works LO connector with HTTPS ?

Caolán McNamara caolanm at redhat.com
Thu May 26 01:39:55 PDT 2011


On Thu, 2011-05-26 at 09:49 +0200, Fernand Vanrie wrote:
> I Trye to use the latest Google Tasks API from in LO but now we need
> to connect with HTTPS
> please can a developer tell me if my code had a change to work no or
> in the future ?
> 
> oConnector = createUnoService("com.sun.star.connection.Connector") 

com.sun.star.connection.Connector is for connecting to a running
LibreOffice instance listening on the far side, i.e. connecting to an
UNO interprocess bridge. 

> oConnection =
> oConnector.connect("socket,host=www.googleapis.com,port=80")  'or port
> (443)'
> oConnection.write( StringToByteArray( "GET
> https://www.googleapis.com/tasks/v1/lists/MDk5Nzc1MDY0NzQyMTk4NjEyMzM6MDow/tasks/MDk5Nzc1MDY0NzQyMTk4NjEyMzM6MDo4?pp=1&key={YOUR_API_KEY}"  + cCR + cLF ))

You *might* have more luck with the ucb api, e.g.
http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/UCB/Documents

C.



More information about the LibreOffice mailing list