GetVariableFromUrl (open)

Get the value of a variable from a URL

Syntax

LOADLIB "wh::internet/urls.whlib";

STRING FUNCTION GetVariableFromUrl(STRING url, STRING varname)

Parameters

STRING url

URL to search

STRING varname

Name of the variable to find

Return value

STRING

The requested variable's value, or an empty string if the variable could not be found

Description

This function searches for the requested variable in a URL and returns its value, while taking care of proper URL decoding.