Send data to a URL via a POST?

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?

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

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

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

https://web.archive.org/web/20140817012650/http://hermione.s41.xrea.com/pukiwiki/pukiwiki.php?OOoBasic%2FGeneric%2FHttpRequest

Maybe you can find help here:
http://listarchives.libreoffice.org/global/users/msg21017.html

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

Take a look here: http://www.oooforum.org/forum/viewtopic.phtml?t=105944