Re: [Libreoffice] Works LO connector with HTTPS ?

2011-05-26 Thread Caolán McNamara
On Thu, 2011-05-26 at 11:30 +0200, Fernand Vanrie wrote:
> Caolán,
> 
> Thanks, but with the UCB we are stucked to only GET and no POST etc...

Hmm, definitely ?, 

http://opengrok.libreoffice.org/xref/libs-core/ucb/source/ucp/webdav/webdavcontent.cxx#600

claims to support "post", and it backs onto a neon implementation which
*seems* to be implemented.

http://api.openoffice.org/docs/common/ref/com/sun/star/ucb/WebDAVDocumentContent.html

http://opengrok.libreoffice.org/xref/components/forms/source/xforms/submission/submission_post.cxx#70
appears to be an example of a "POST" that might be worth a shot.

C.

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] Works LO connector with HTTPS ?

2011-05-26 Thread Fernand Vanrie

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@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] Works LO connector with HTTPS ?

2011-05-26 Thread Caolán McNamara
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@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


[Libreoffice] Works LO connector with HTTPS ?

2011-05-26 Thread Fernand Vanrie
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")
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 ))


Greetz Fernand

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice