AddVariableToUrl (open)
Rewrite an URL to add a variable
Syntax
LOADLIB "wh::internet/urls.whlib";
STRING FUNCTION AddVariableToUrl(STRING url, STRING varname, STRING varvalue)Parameters
STRING urlURL to modify
STRING varnameName of the variable to add
STRING varvalueValue to set this variable to
Return value
STRINGThe rewritten URL
Description
This function adds the requested variable to a URL, takes care of proper URL encoding and adding the necessary '?' and '&" characters to the URL. It will not try to eliminate duplicate variables on the URL