General issues

Proxy and URL encoding

If eXist-db is hosted behind a proxy you might encounter issues with the API. Instead of the desired content you get “the server did not return any content” and several 404 errors on the console.
You have to tell the proxy to avoid decoding the query prameters:

  • nginx
location / {
  proxy_pass  http://host/webapp$request_uri;
}

See https://stackoverflow.com/questions/20496963/avoid-nginx-decoding-query-parameters-on-proxy-pass-equivalent-to-allowencodeds