4D v13.4

HTTP Client

Home

 
4D v13.4
HTTP Client

HTTP Client 

 

Constant  Type Value Comment
HTTP Basic  Longint 1 Use BASIC authentication method
HTTP Compression  Longint 6 value = 0 (do not compress) or 1 (compress). Default value: 0
This option enables or disables the compression mechanism intended to accelerate exchanges for requests between the client and server. When this mechanism is enabled, the HTTP client uses deflate or gzip compression depending on the server response.
HTTP DELETE Method  String DELETE See RFC 2616
HTTP Digest  Longint 2 Use DIGEST authentication method
HTTP Display auth dial  Longint 4 value = 0 (do not display dialogue box) or 1 (display dialogue box). Default value: 0
This option displays the authentication dialog box when the HTTP Get or HTTP Request command is executed. By default, this command never displays the dialog box and you must normally use the HTTP AUTHENTICATE command. However, if you want an authentication dialog box to appear so that users can enter their identifiers, then pass 1 in value. The dialog box only appears when the request requires authentication.
HTTP Follow redirect  Longint 2 value = 0 (do not accept redirections) or 1 (accept redirections).
Default value = 1
HTTP GET Method  String GET See RFC 2616. Same as using HTTP Get command.
HTTP HEAD Method  String HEAD See RFC 2616
HTTP Max redirect  Longint 3 value = Maximum number of redirections accepted
Default value = 2
HTTP OPTIONS Method  String OPTIONS See RFC 2616
HTTP POST Method  String POST See RFC 2616
HTTP PUT Method  String PUT See RFC 2616
HTTP Reset auth settings  Longint 5 value = 0 (do not delete information) or 1 (delete information). Default value: 0
This option indicates to 4D to reset the authentication information of the user (user name, password, method) after each execution of the HTTP Get or HTTP Request command in the same process. By default, this information is kept and reused for each request. Pass 1 in value to delete this information after each call. Note that regardless of the setting, this information is deleted when the process is killed.
HTTP Timeout  Longint 1 value = timeout of client request, expressed in seconds. This timeout sets how long the HTTP client waits for the server to respond. After this period of time has passed, the client closes the session and the request is lost.
By default, this timeout is 120 seconds. It can be changed because of specific characteristics (network state, request characteristics, etc.).
HTTP TRACE Method  String TRACE See RFC 2616
 
PROPERTIES 

Product: 4D
Theme: List of constant themes

 
SEE ALSO 

HTTP AUTHENTICATE
HTTP GET OPTION
HTTP Request
HTTP SET OPTION