Re: [basex-talk] A question about RESTXQ rest:form-param()

2020-04-22 Thread Zimmel, Daniel
the mime type seems correct, all params are being sent. I do not have problems getting the body, only request:parameter-names() does not give any values. (request:header works, for example) -Ursprüngliche Nachricht- Von: Marco Lettere Gesendet: Mittwoch, 22. April 2020 15:31 An:

Re: [basex-talk] A question about RESTXQ rest:form-param()

2020-04-22 Thread Zimmel, Daniel
Thanks for the hint Marco, I just tried request:parameter-names(): that one works with GET but with POST I get an empty-sequence, I am not sure what the problem is here. I can access the full (unparsed) body, though (I can use that). Daniel -Ursprüngliche Nachricht- Von: Marco Lettere

Re: [basex-talk] A question about RESTXQ rest:form-param()

2020-04-22 Thread Zimmel, Daniel
Hi Daniel, RTFM. Simply pass the body in %rest:POST("{$body}"). Sorry for disturbing! Daniel -Ursprüngliche Nachricht- Von: Zimmel, Daniel Gesendet: Mittwoch, 22. April 2020 11:27 An: BaseX Betreff: [basex-talk] A question about RESTXQ rest:form-param() Hi, in an HTML form with a

[basex-talk] A question about RESTXQ rest:form-param()

2020-04-22 Thread Zimmel, Daniel
Hi, in an HTML form with a RESTXQ POST action, do I really have to declare %rest:form-param() for every param, or is there a way to pass the full query component in one parameter? Best, Daniel