I am wondering what the best way is to do that in BaseX. The service also has a URL syntax, as shown in the following example:
http:send-request(<http:request method='get'
and works perfectly; but I was trying to put the body of the request in http:body, but it does not work:
http:send-request(<http:request method='get'
<http:body media-type ="string">
tokenizer&tagger&parser&data=Děti pojedou k babičce. Už se těší.
</http:body>
</http:request>)
I could invoke the curl command in BaseX, but maybe there is a more elegant way to send the content of the file (than adding it to the URL). Thanks.
Ciao,
Giuseppe