User Tools

Site Tools


cookbooks:5.3.x:pseudovariables

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
cookbooks:5.3.x:pseudovariables [2019/11/14 16:06]
giavac More on http_async_client pseudovariables
cookbooks:5.3.x:pseudovariables [2019/11/15 15:07]
giavac [$http_req(key)]
Line 1356: Line 1356:
 The $http_req(key) write-only variable can be used to set custom parameters before sending a HTTP query. The $http_req(key) write-only variable can be used to set custom parameters before sending a HTTP query.
  
-key can be one of:+**key** can be one of:
   * all: if set to $null, resets all the parameters to their default value (the ones defined in modparam)   * all: if set to $null, resets all the parameters to their default value (the ones defined in modparam)
   * hdr: sets/​modifies/​removes a HTTP header. N.B.: setting this variable multiple times will add several headers to the query.   * hdr: sets/​modifies/​removes a HTTP header. N.B.: setting this variable multiple times will add several headers to the query.
Line 1365: Line 1365:
   * tls_client_key:​ sets the client certificate key to use   * tls_client_key:​ sets the client certificate key to use
   * tls_ca_path:​ sets the CA certificate path to use   * tls_ca_path:​ sets the CA certificate path to use
-  * authmethod: Sets the preferred authentication mode for HTTP/HTTPS requests. The value is a bitmap and multiple methods can be used. Note that in this case, the CURL library will make an extra request to discover server-supported authentication methods. You may want to use a specific value. +  * authmethod: Sets the preferred authentication mode for HTTP/HTTPS requests. The value is a bitmap and multiple methods can be used. Note that in this case, the CURL library will make an extra request to discover server-supported authentication methods. You may want to use a specific value. Valid values are: 
- +      * 1 - BASIC authentication 
-Valid values are: +      * 2 - HTTP Digest authentication 
-    * 1 - BASIC authentication +      * 4 - GSS-Negotiate authentication 
-    * 2 - HTTP Digest authentication +      * 8 - NTLM authentication 
-    * 4 - GSS-Negotiate authentication +      * 16 - HTTP Digest with IE flavour. 
-    * 8 - NTLM authentication +      * (Default value is 3 - BASIC and Digest authentication.)
-    * 16 - HTTP Digest with IE flavour +
- +
-Default value is 3 - BASIC and Digest authentication. +
   * username: sets the username to use for authenticated requests   * username: sets the username to use for authenticated requests
   * password: sets the password to use for authenticated requests   * password: sets the password to use for authenticated requests
Line 1386: Line 1382:
  
 The following read-only pseudo variables can only be used in the callback routes executed by http_async_query() The following read-only pseudo variables can only be used in the callback routes executed by http_async_query()
-  * $http_ok1 if cURL executed the request successfully,​ 0 otherwise (check $http_err for details) + 
-  ​* ​$http_errcURL error string if an error occurred, $null otherwise +=== $http_ok ​=== 
-  ​* ​$http_rs: http status +1 if cURL executed the request successfully,​ 0 otherwise (check $http_err for details). 
-  ​* ​$http_rr: http reason phrase + 
-  ​* ​$http_hdr(Name): value of the Name header (the $(http_hdr(Name)[N]) syntax can also be used, check the SIP $hdr() PV documentation for details) +=== $http_err ​=== 
-  ​* ​$http_mb and $http_mlHTTP response buffer (including headers) and length +cURL error string if an error occurred, $null otherwise. 
-  ​* ​$http_rb and $http_bsHTTP response body and body length+ 
 +=== $http_rs ​=== 
 +HTTP status. 
 + 
 +=== $http_rr ​=== 
 +HTTP reason phrase. 
 + 
 +=== $http_hdr(Name) ​=== 
 +Value of the Name header (the $(http_hdr(Name)[N]) syntax can also be used, check the SIP $hdr() PV documentation for details). 
 + 
 +=== $http_mb and $http_ml ​=== 
 +HTTP response buffer (including headers) and length. 
 + 
 +=== $http_rb and $http_bs ​=== 
 +HTTP response body and body length,
  
 ===== XMLOPS Pseudo-Variables ===== ===== XMLOPS Pseudo-Variables =====
cookbooks/5.3.x/pseudovariables.txt · Last modified: 2020/01/15 18:38 by mbungalski