WebRemoveFromHNC Function

Action

This function is used to remove an already resolved host from the host name cache of a user. If a hostname cannot be found in the host name cache during replay, it has to be resolved (again). If the Emulate DNS lookup checkbox is checked every user sends its own DNS query to the DNS server (otherwise it is possible that the system caches the response of a prior DNS query).

Include file

WebAPI.bdh

Syntax

WebRemoveFromHNC(in sHostName : string): boolean;

Return value

  • true if the host name cache has been updated successfully.

  • false otherwise.

Parameter Description
sHostName Name of the host that should be deleted from the host name cache.

Example

dcltrans
transaction TMain
begin
  WebPageUrl("http://lab3/shopit/", "ShopIt - Greetings");
  WebRemoveFromHNC("lab3");
  WebPageUrl("http://lab3/", "home page");
end TMain;