Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The underlying problem is that a url such as <strong>http://www.mysite.com/thankyou?orderno=123</strong> won't work in a Lotus Domino website because the ? is a special character (eg ?openagent, ?opendatabase) to the Domino web engine. You also can't use <strong>http://www.mysite.com/(thankyou)?openagent?orderno=456</strong> (I tried), in both cases all you get is 404 page not found error and a domino log error "don't understand the url". The question was originally asking for help with Perl to solve the problem but I couldn't Perl scripts to run on my webfusion community server but fortunately quickly had success with this simple php script:</p> <pre><code>&lt;?php $params = ""; $url = "http://www.mywebsite.co.uk/"; $path = "wpx/website.nsf/httpagent?openagent"; if($_GET) { $kv = array(); foreach ($_GET as $key =&gt; $value) { $kv[] = "$key=$value"; } $params = join("&amp;", $kv); } print "&lt;script&gt;window.location.href=\"" . $url . $path . "&amp;" . $params . "\"&lt;/script&gt;"; ?&gt; </code></pre> <p>The script is placed on my webfusion server under a subdomain which effectively translates the url into a format that Domino can handle, the format ?openagent&amp;orderno=456 is easily handled by either a java or Lotusscript agent, the parameter is extracted from the CGI Request_Content field.</p> <p>The redirect means I don't for now need to manipulate data in the domino database directly, it also means that with the exception of the url translation script all the website code is in the domino database.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload