[Libreoffice] Works LO connector with HTTPS ?

Fernand Vanrie sos at pmgroup.be
Thu May 26 02:30:18 PDT 2011


Caolán,

Thanks, but with the UCB we are stucked to only GET and no POST etc...
Is it a good idea to ask for a enhancement to make connector a proper 
tool to make http/https requests ?

G.
> 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.
>
> _______________________________________________
> LibreOffice mailing list
> LibreOffice at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libreoffice



More information about the LibreOffice mailing list