Hi BR,
When called from within a WebApp this should give the result you are looking for.. *request:header*( 'User-Agent')
See https://docs.basex.org/wiki/Request_Module#request:header
/Andy
On Tue, 15 Jun 2021 at 15:33, dudzikp@yahoo.com dudzikp@yahoo.com wrote:
Dear all,
I do not see an option to obtain the headers from the HTTP request from inside webapp function. Just like in the example:
declare %rest:GET %rest:path('tests-html') ???%rest:headers('User-Agent')??? %output:method('html') function page-main:start-empty( ???$user-agent as xs:string??? ) as element(html) { ... }
Is this possible?
BR