Parsing a URL that insists on putting a ? in itself and freaking Domino out

I don’t even know how to sum this problem; that’s probably why 2 hours of searching this forum has brought me no luck.

I am a whiz at parsing URLs I can control. You know:

http://www.asdf.com/dbname.nsf/ProcessMe?openagent

?openagent&name=myname&colour=brown (etc)

But I am increasingly running into URLs that I must process into Domino, over which URLs I have no control, because I am Joe Insignificant and the Bank of the Global MegaCorp is not going to change their URL format because of me.

Situation today:

I want a response from a third-party website doing commercial transactions. I tell them to send the response to:

http://www.asdf.com/dbname.nsf/ProcessMe?openagent

They duly respond like this:

http://www.asdf.com/dbname.nsf/ProcessMe?openagent?VerifyKey=63876&Type=Purchase (etc)

And Domino, of course, duly responds in turn by throwing a hairy fit because there are two ? in the URL. [yes, have tried used !openagent]

Yet, I keep running into these buggery responses that use ? to start them.

I can’t be the only person to have encountered this; in fact, if anything, I’m probably late to the game.

Any suggestions? (and I repeat, I cannot influence one iota the syntax coming into me.)

Randal Oulton

Toronto

Subject: Parsing a URL that insists on putting a ? in itself and freaking Domino out

All right, I beat it.

But I’ll admit it; I’m not proud of it. I used age, cunning and guile to defeat it.

I told it the URL to send to was:

http://www.asdf.com/dbname.nsf/ProcessMe?openagent&

(sic; & at the end which caused the foreign system’s question mark to be ignored)

then in the agent to parse the stuff out, I went:

content = doc.Query_String_Decoded(0)

content = Strright(content,"openagent&?")

to get my pure name / value pairs to parse, then was off to the races.

Posting this in case anyone else wants to know, though someone may well come along and post a proper solution.