aha! it seems the REST API[0] does work! I guess I can do my db:replace() using HTTP PUT requests
[0]: http://docs.basex.org/wiki/REST [1]: http://docs.basex.org/wiki/REST#PUT_Method
On 2 June 2016 at 17:09, Asxetos pure.asxetos@gmail.com wrote:
Hey all,
I am trying to connect to a remote database and replace its files. I am using db:replace() inside client:query(), but I don't get how I am supposed to pass $input as the new data for the file in the database.
Here a quick code snippet I put together: http://sprunge.us/jdaZ ( or http://sprunge.us/OZHj?xquery )
If there's a better method for doing what I am trying, I'm fine with replacing my whole method, even if that is using some sort of REST API and http requests. Just give me some pointers ;)
Thanks!