To add a new host into the host file of a Virtual User use the WebAddToHNC function. This allows you to call a link from the host file of the virtual user to avoid making DNS lookups and also to increase the usability of scripts. This is also useful if an application has only just been commissioned and the DNS records linking the application URL to the IP address have not been updated yet. Example: transaction TMain begin WebAddToHNC("mylink", "143.186.186.61"); WebPageUrl("http://mylink:19120/login/DEF", "My Web Page"); end TMain; This can also be used to avoid having to use IP addresses in link name strings if WebSetStandardHost is not suitable.
↧