RXS_getUrlVar()

Some web services may require their consumers to pull variables off of the URL. This subprocedure will simplify that process. Here is an example URL with variables in name=value pair format:

http://mysite.com/rxs/mywebservice?customer=1&code=3

  • customer is a variable with a value of 1.
  • code is a variable with a value of 3.

Note: Previously, this API failed to return variables where the variable length was a single character. This was fixed in v2.30.

Subprocedure Prototype

D RXS_getUrlVar   pr         32767a   varying

Parse a URL for a specified name/value pair. Returns the associated value.

D  pVar                        300a   value

The name of the variable from which you want to retrieve the value.