cookbooks:5.3.x:pseudovariables
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
cookbooks:5.3.x:pseudovariables [2019/11/14 15:06] – More on http_async_client pseudovariables giavac | cookbooks:5.3.x:pseudovariables [2019/11/15 13:59] – [Other read-only variables] giavac | ||
---|---|---|---|
Line 1386: | Line 1386: | ||
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_ok: 1 if cURL executed the request successfully, | + | |
- | | + | === $http_ok |
- | | + | 1 if cURL executed the request successfully, |
- | | + | |
- | | + | === $http_err |
- | | + | cURL error string if an error occurred, $null otherwise. |
- | | + | |
+ | === $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/04/06 16:09 by pojogas