GCF: Getting Data from Response Header to Final URL

I'm trying to make a connector to InterChange webmail. We cannot get the InterChange server to allow us to access the pickup.html file to set cookies. However, you can still access the webmail application if you use the cookie value as part of the URL. So what I need to do is capture the cookie value when it comes back from InterChange (using "grabfromheader" in the XML), then insert it into the final destination URL that the CPIP is routing to. Anybody have a good idea on how to do this second part?

Thanks,
David

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: GCF: Getting Data from Response Header to Final URL

You can include a variable name in GCF URLs if you reference them like this:

${variableName}

GCF links to our e-mail system include ${mySessID} as part of the URL (the dollar sign and curly braces need to be URL encoded):

/cp/ip/login?sys=mySysName&url=
  https%3A%2F%2Fwww.myURL.edu/%24%7BmySessID%7D/

In our xml file we get a new session ID and save it in a variable called mySessID. Then the ${mySessID} in the destination URL is replaced with the value from our xml file.

Exactly What the Doctor Ordered

Thanks, Tim. That's exactly what I need to do, to the letter.

caveat - set shortcircuitlogin to false

when you use a variable in the destinationUrl

you have to run

configman -s es.mySysName.shortcircuitlogin false

otherwise the first click of the link logs you in fine, but the second takes you to myURL.edu/${mySessID}/ rather than myURL.edu/ASTROFLOTSOFHEX/

Derek

Syndicate content