Myths on Maps

  • Log in
  • « SVN instructions for MoM
  • Lucene - boost relevancy based on qname »

exist webapps - get referer

Posted by gregster on 04 Oct 2011 in Activity log

Needed to know the name of the script that makes an HTTP request; assuming a referer url like http://somedomain.com/script.xql?param=value

Added a functx function:
declare function inc:substring-after-last-match
( $arg as xs:string? ,
$regex as xs:string ) as xs:string {
replace($arg,concat('^.*',$regex),'')
};

Used it like this:
let $referer := substring-before(inc:substring-after-last-match(request:get-header("referer"),'/'),'?')

Provides "script.xql" as the referer.

This entry was posted by Greg and filed under Activity log.

Myths on Maps

This project will focus on deploying an interactive map of Europe with overlays for Greek and Roman myths, history, people and events.
SVN instructions for MoM editors
Development URL
HCMC Blogs home
  • Archives
  • Categories

Search

XML Feeds

  • Atom: Posts
  • RSS 2.0: Posts
What is RSS?

This collection ©2023 by admin • Help • Bootstrap back-end