XML Export Variables

Syntax: names separated by newlines

XML Export Variables is a list of variables, one per line, that are to be displayed and propagated through XML search results. This can be used to propagate HTTP headers from the client's request, or for including arbitrary extra information.

  • HTTP Headers

    You can specify the header name in all caps, with underscores for spaces, and with a HTTP_ prefix. For example, to include "User Agent", specify HTTP_USER_AGENT.

  • Arbitrary variables

    You can specify any named variable, and values passed in to the search query will be propagated in the XML output.

For example, if you use cbtGroup and HTTP_USER_AGENT, and the search URL includes ...&cbtGroup=user&cbtGroup=backup&..., then the following block will appear in the XML output, as a child node of <ThunderstoneResults>:

<exportVar>
  <variable name="HTTP_USER_AGENT">Mozilla/5.0 ....</variable>
  <variable name="cbtGroup">user</variable>
  <variable name="cbtGroup">backup</variable>
</exportVar>


Copyright © Thunderstone Software     Last updated: Nov 8 2024
Copyright © 2024 Thunderstone Software LLC. All rights reserved.