Hi Ioan,
have you already checked out the documentation of our Request Module [1]? The specification of the module is still in progress, which is the reason why some of the functions differ.
What other methods would be to get body content?
Have you already tried to bind the body to a variable via RESTXQ [2]?
%rest:PUT("{$body}"
Hope this helps, Christian
[1] http://docs.basex.org/wiki/Request_Module [2] http://docs.basex.org/wiki/RESTXQ
I'm having a problem that I hope you can help me with some guidance. A form made with XForms send data from a instance - with submission, POST method - in a function xq from BaseX, to be saved in the database, and can not find how to retrieve data from the request.
We found here ( http://exquery.github.io/expath-specs-playground/request-modules-1.0-specifi... ) specifications for request:http() function, that seems to be taking all content submitted by post, but not yet implemented. Are likely to be implemented soon, and really do this? What other methods would be to get body content? I found this guidance ( https://www.mail-archive.com/basex-talk%40mailman.uni-konstanz.de/msg03171.h... ) to function http: send-request, but I did not understand how they could solve this.
Many thanks, Ioan