Additional ? in URL string causing "Invalid URL exception" error

I am using a payment gateway service provider that returns the following parameters:?VendorTxID=123&VendorResult=00

When the post reaches my server I have to run an agent, but unfortunately I already have a “?” in my URL string:

(/db.nsf/bankresponse?openagent

I therefore end up with two “?” in my URL string:

(/db.nsf/bankresponse?openagent?VendorTxID=123&VendorResult=00

The payment gateway supplier says they cannot remove or replace the “?” in their post. Fair enough.

Is it possible for me to replace their “?” with a “&” (or anything else) when it reaches my server?

Any suggestions would help as I am hitting a total blank on this one.

thanks in advance

Subject: Solution

  1. Open Domino Administrator and open your server2. Go to Configuration Tab >> Web >> Internet Sites

  2. Open the Web Site document

  3. Click on the button called Website>>Create Rule

  4. Web rule document settings:

Type of rule= “Redirection”

Incoming URL pattern = /db.nsf/BankPost?*

Redirect to this URL =/db.nsf/myagent?openagent&*

Subject: Additional ? in URL string causing “Invalid URL exception” error

You could try configuring a URL redirection or substitution to replace ?VendorTxID* with &VendorTxID*

Subject: RE: Additional ? in URL string causing “Invalid URL exception” error

Melissa, I’ve tried your idea, but it won’t work because substitution and redirection only applies to the url before the query.

From the admin help documentation:

“Note Only the URL path is used for pattern matching. The query string is saved for use by the application. Any patterns you specify for a rule’s Incoming URL pattern field should not include a host name or query string.”

I’m still looking for alternatives…

Subject: RE: Additional ? in URL string causing “Invalid URL exception” error

Don’t know if these will work but might be worth a shot

  1. If the name of your agent does not match any other design element in the database, try dropping the ?OpenAgent from the URL altogether and see if it can understand that

  2. You could try on your web site document making the site accessible to web crawlers. The effect of this is to allow Domino to understand ! instead of ? for the Query string delimeter. Then use “!OpenAgent” instead in the URL.