Zoomed Image

AMSX Scripting Language - Command : ReplaceURL

Summary

Rebuild a URL replacing the scheme, host, or port

Description

Parses the source URL and replaces any of the scheme, host, or port components with the supplied values. Components left blank are retained from the original URL. The resulting URL is stored in the result buffer.

Parameters

ParameterDescription
cmdSource URL to modify
Argument 0New scheme (e.g. "https"); leave blank to keep original
Argument 1New host name; leave blank to keep original
Argument 2New port number; leave blank to keep original

Syntax


ReplaceURL "Source URL to modify", "New scheme (e.g. "https"); leave blank to keep original", "New host name; leave blank to keep original", "New port number; leave blank to keep original"

Return to the AMSX Command Reference