WebUrlTrace Function

Action

Sends a TRACE request to the HTTP/1.1 server. The TRACE method is used to invoke a remote, application-layer loopback of the request message. The final recipient of the request SHOULD reflect the message received back to the client as the entity-body of a 200 (OK) response. Use of the Max-Forwards header field allows the client to limit the length of the request chain; this is useful for testing a chain of proxies forwarding messages in an infinite loop. If successful, the response SHOULD contain the entire request message in the entity body, with a Content-Type of "message/http".

Include file

WebAPI.bdh

Syntax

WebUrlTrace(
  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

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 TWebHttp11
  begin
    WebUrlTrace("http://standardhost/index.html", 0.0);
  end TWebHttp11;