Where else can samples you have already provided be found? (I hate to use your time with my questions, if there are other resources to learn from)
I do not actually use it one that level, with map and retrieve.
I put the entire program in that string and call query once to get the result without doing any calculation in Pascal. (or skip even query and use the underlying classes directly, with XML-files containing multiple XQuery statements:
https://sourceforge.net/p/videlibri/code/ci/tip/tree/programs/internet/xidel/examples/ or template file in
https://sourceforge.net/p/videlibri/code/ci/tip/tree/programs/internet/VideLibri/data/libraries/templates/summon/ )
Since it is XQuery compatible, you can use any example they have in the
(wiki)books. (The extension functions are not the same, but every standard function (that has no prefix or the fn:prefix there) are the same)
One reason to make it XQuery-compatible is that so I do not have to write documentation. Just remember that x.map('query') corresponds to the XQuery expression x ! query and x.filter('query') to x [ query ]
Only .retrieve is special
It turned out, I have never actually submitted the form, the mapped fields and values became parameters of the URL of a get command.
So the next task is to figure out how to "push" this button:
<button id="submitLogin" type="submit" class="btn mag" tabindex="3">Log in</button>
You do not actually "push" it.
You sent an HTTP request that is the same as the one the browser would make. .map creates the request and .retrieve sends it.
Some pages want the name of the pressed button as additional parameter (they have multiple buttons each doing something else), but your button does not seem to have a name or value