WebUrlHead Function

Action

Sends a HEAD request to the server. The server will send no data but a response message.

Include file

WebAPI.bdh

Syntax

WebUrlHead( in sUrl  : string,
            in fWait : float optional): boolean;

Return value

  • true if the worker thread communicating with the server could be started successfully

  • false otherwise. The return value will not inform about any Web traffic-related problems due to independent threaded operation.

Parameter Description
sUrl Complete URL to the file on the server
fWait Minimum time or minimum mean time that this function call has to last (optional). Default value is 0.0

Example

dcltrans
  transaction TMain
  begin
    WebUrlHead("http://www.myserver.com/index.html", 0.0);
  end TMain;