<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.getRequestUrl.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.getRequestUrl</api:function-name><api:suggest>xdmp.getrequesturl</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>getrequesturl</api:suggest><api:function-link mode="xquery" fullname="xdmp:get-request-url">/apidoc/8.0/xdmp:get-request-url.xml</api:function-link><api:function mode="javascript" type="builtin" lib="xdmp" name="getRequestUrl" category="AppServerBuiltins" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.getRequestUrl"><api:summary>
  Returns the portion of the URL following the host_name:port_number.  The
  output does not include any fragment identifier supplied with the URL (that
  is, it does not include the # sign or anything following the # sign). Note
  that when a URL rewriter is used, this function returns the rewritten URL.
  To get the URL before rewriting occurs, use
  <a href="./xdmp:get-original-url" xmlns="http://www.w3.org/1999/xhtml"><code>xdmp:get-original-url</code></a>.
</api:summary><api:return>String</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.getRequestUrl();
=&gt; "/example.xqy?name=foo&amp;year=2006"
</pre></api:example></api:function></api:function-page>