Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  Creating Sherlock Channels, Part 2
Subject:   url encoding the query for searching
Date:   2003-04-01 06:04:37
From:   cymantic
Instead of messing about with the string-seperate string-combine you can use the url-encode($query) instead. Much clearer as to what's going on any why...


let $httpSearchRequest := http-request(string-combine(("http://www.macosxhints.com/search.php?type=stories&mode=search&keyType=all&query=", url-encode($query)), ""))