Ask Your Question
1

send data to a URL via a POST? [closed]

asked 2012-08-20 00:51:22 +0200

ptn4egl gravatar image

I would like to parse some content of my calc document and then send that data as a POST to a URL. Wrapping that as either XML or JSON should not be a problem.

I can GET data with a BASIC macro and insert it just fine, but I want to bundle the data up and POST it to a URL. Validation and verification will all be handled in the scripts, I'm not worried about that.

Now, I can write it in Python if I need to, I just want to make sure it's portable for Linux, Windows, and Mac platforms, and I haven't written a Python macro before. Python yes, Python LibreOffice macro no.

What are the methods to connect to an external URL and POST data to it as a LibreOffice macro?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2015-10-19 18:37:58.899654

2 Answers

Sort by » oldest newest most voted
0

answered 2012-08-20 01:40:54 +0200

m.a.riosv gravatar image
edit flag offensive delete link more

Comments

Thansk, but I am not looking to send the entire file via email, I am looking to send parsed data to a webservice. Almost like an AJAX call for a website.

I am also looking for something that is 100% cross platform compatible: Linux, Mac and Windows

ptn4egl gravatar imageptn4egl ( 2012-08-21 17:40:46 +0200 )edit
m.a.riosv gravatar imagem.a.riosv ( 2012-08-21 23:27:35 +0200 )edit
1

answered 2012-12-27 11:39:57 +0200

Celle gravatar image

Take a look at this link text. It is in Japanese, but the code is self-explanatory.

edit flag offensive delete link more

Comments

Sorry but I can not help with the code, Maybe in the users mailing list: http://nabble.documentfoundation.org/Users-f1639498.html

m.a.riosv gravatar imagem.a.riosv ( 2012-12-27 23:56:14 +0200 )edit

That link is 'forbidden' (403?) but the code is available on the way back machine:

https://web.archive.org/web/201408170...

jondoig gravatar imagejondoig ( 2018-02-27 12:12:04 +0200 )edit

Question Tools

Stats

Asked: 2012-08-20 00:51:22 +0200

Seen: 1,382 times

Last updated: Dec 27 '12