|
@@ -389,7 +389,7 @@ t_reply("200", "Ok");
|
|
|
...
|
|
|
tls_verify_host("0");
|
|
|
# host verification is disabled for the next query
|
|
|
-http_query("https://example.com/test.php", "HTTP_REPLY");
|
|
|
+http_async_query("https://example.com/test.php", "HTTP_REPLY");
|
|
|
...
|
|
|
</programlisting>
|
|
|
</example>
|
|
@@ -411,7 +411,7 @@ http_query("https://example.com/test.php", "HTTP_REPLY");
|
|
|
...
|
|
|
tls_verify_peer("0");
|
|
|
# server identity verification is disabled for the next query
|
|
|
-http_query("https://example.com/test.php", "HTTP_REPLY");
|
|
|
+http_async_query("https://example.com/test.php", "HTTP_REPLY");
|
|
|
...
|
|
|
</programlisting>
|
|
|
</example>
|
|
@@ -433,7 +433,7 @@ http_query("https://example.com/test.php", "HTTP_REPLY");
|
|
|
...
|
|
|
http_set_timeout("200");
|
|
|
# the server must respond in maximum 200ms, otherwise the query will fail
|
|
|
-http_query("https://example.com/test.php", "HTTP_REPLY");
|
|
|
+http_async_query("https://example.com/test.php", "HTTP_REPLY");
|
|
|
...
|
|
|
</programlisting>
|
|
|
</example>
|
|
@@ -464,7 +464,7 @@ http_append_header("X-Sip-Call-Id: $ci");
|
|
|
# a new 'X-Sip-Call-Id' header will be added to the next query
|
|
|
http_append_header("Content-Type": application/json");
|
|
|
# the curl default 'application/x-www-form-urlencoded' Content-Type will be replaced
|
|
|
-http_query("https://example.com/test.php", "{'foo': 'bar'}", "HTTP_REPLY");
|
|
|
+http_async_query("https://example.com/test.php", "{'foo': 'bar'}", "HTTP_REPLY");
|
|
|
...
|
|
|
</programlisting>
|
|
|
</example>
|
|
@@ -486,7 +486,7 @@ http_query("https://example.com/test.php", "{'foo': 'bar'}", "HTTP_REPLY");
|
|
|
...
|
|
|
http_set_method("PUT");
|
|
|
# the next query will be a HTTP PUT request
|
|
|
-http_query("https://example.com/test.php", "{'foo': 'bar'}", "HTTP_REPLY");
|
|
|
+http_async_query("https://example.com/test.php", "{'foo': 'bar'}", "HTTP_REPLY");
|
|
|
...
|
|
|
</programlisting>
|
|
|
</example>
|
|
@@ -508,7 +508,7 @@ http_query("https://example.com/test.php", "{'foo': 'bar'}", "HTTP_REPLY");
|
|
|
...
|
|
|
http_set_tls_client_cert("/etc/kamailio/ssl/cert.pem");
|
|
|
# Next query will use the client cert above
|
|
|
-http_query("https://example.com/test.php", "HTTP_REPLY");
|
|
|
+http_async_query("https://example.com/test.php", "HTTP_REPLY");
|
|
|
...
|
|
|
</programlisting>
|
|
|
</example>
|
|
@@ -530,7 +530,7 @@ http_query("https://example.com/test.php", "HTTP_REPLY");
|
|
|
...
|
|
|
http_set_tls_client_key("/etc/kamailio/ssl/cert.key");
|
|
|
# Next query will use the client cert key above
|
|
|
-http_query("https://example.com/test.php", "HTTP_REPLY");
|
|
|
+http_async_query("https://example.com/test.php", "HTTP_REPLY");
|
|
|
...
|
|
|
</programlisting>
|
|
|
</example>
|
|
@@ -552,7 +552,7 @@ http_query("https://example.com/test.php", "HTTP_REPLY");
|
|
|
...
|
|
|
http_set_tls_client_key("/etc/kamailio/ssl/ca/");
|
|
|
# Next query will use the CA certs above
|
|
|
-http_query("https://example.com/test.php", "HTTP_REPLY");
|
|
|
+http_async_query("https://example.com/test.php", "HTTP_REPLY");
|
|
|
...
|
|
|
</programlisting>
|
|
|
</example>
|
|
@@ -584,7 +584,7 @@ $http_req(method) = "DELETE";
|
|
|
$http_req(hdr) = "X-Sip-Call-Id: " + $ci;
|
|
|
$http_req(hdr) = "X-Foo: bar"; # add a 2nd header
|
|
|
# the following request will use the above parameters
|
|
|
-http_query("https://example.com/test.php", "HTTP_REPLY");
|
|
|
+http_async_query("https://example.com/test.php", "HTTP_REPLY");
|
|
|
...
|
|
|
</programlisting>
|
|
|
</example>
|