GetWebText |
Top Previous Next |
The GetWebText Special Function Command allows you to retrieve the text from a specified URL formatted as a string. The URL can point to a file on a web server, or to a web page. Important: Special Function commands can only be used on the right hand side of a Variable Assignment command. Command Syntax
GetWebText,[Url]
The comma character after the command is compulsory as is the file name parameter.
Parameters:
Url: A valid URL from which to retrieve the text.
The parameter is compulsory. If any required parameter is missing or invalid an error will be thrown. The parameter must be surrounded by quotation marks if one or more spaces are included in the path and file name. It is good practice to include the quotation marks in any case, so that it reduces the risk of error when writing scripts.
Example:
Retrieve the from a local text file
Var:WebText=GetWebText,"https://pipelinerunner.com/public/test/latestversion.dta"
See Also: Special Functions GetText GetRegistryValue
|