Re: [basex-talk] BASEX: REST: PUT to change a XML file in DB

2017-07-10 Thread Martin Honnen
On 10.07.2017 15:16, Roland Krause wrote: Hi all, I installed basex for keeping and updating XML files. I can load a XML into a browser with javascript ... var xhr = new XMLHttpRequest(); xhr.open( "GET", "http://localhost:8984/rest/XMLfiles/cmuInput.xml;, true); xhr.send(); var xml =

Re: [basex-talk] BASEX: REST: PUT to change a XML file in DB

2017-07-10 Thread Christian Grün
Dear Roland, This sounds like a JavaScript issue, so I can’t help too much, but maybe thing work out if you specify login and passwort directly in the URL? xhr.open( "PUT", "http://admin:admin@localhost:8984/rest/XMLfiles/test.xml;, true); Cheers, Christian On Mon, Jul 10, 2017 at 3:16 PM,

[basex-talk] BASEX: REST: PUT to change a XML file in DB

2017-07-10 Thread Roland Krause
Hi all, I installed basex for keeping and updating XML files. I can load a XML into a browser with javascript ... var xhr = new XMLHttpRequest(); xhr.open( "GET", "http://localhost:8984/rest/XMLfiles/cmuInput.xml;, true); xhr.send(); var xml = xhr.responseXML; ... but if I try to PUT something,