HTTP GET Request with eXistDB
✓ Published0🌍 Public
CCliffordAnderson
Last edited Dec 22, 2013
Created on Dec 22, 2013
This example demonstrates an HTTP GET request issued from within eXistDB using the XQuery `httpclient:get` function, targeting the URL `http://www.rest.com`. It shows how to fetch and parse an external resource by wrapping the response body as an XHTML fragment, specifically accessing the `/httpclient:body/html` path. The code relies on the eXist-dB HTTP Client module, which handles the low-level transport and returns the response in a structured format. No external JavaScript libraries or rendering frameworks are involved; the focus is purely on server-side data retrieval and XML manipulation within the eXist-dB environment.
AI-generated description