[sr-dev] git:master:e2ddfed6: http_async_client: doc review (payload setting)
Daniel-Constantin Mierla
miconda at gmail.com
Wed Apr 26 22:32:47 CEST 2017
Hello,
On 26.04.17 22:12, Giacomo Vacca wrote:
> [...]
> @@ -331,7 +331,8 @@ t_newtran();
> http_async_query("http://example.com/test.php?r_uri=$rU&f_uri=$fU", "HTTP_REPLY");
> ...
> # POST
> -http_async_query("http://example.com/test.php", "{'r_uri':'$rU', 'f_uri':'$fU'}", "HTTP_REPLY");
> +$var(payload) = "{'r_uri':'$rU', 'f_uri':'$fU'}";
> +http_async_query("http://example.com/test.php", "HTTP_REPLY");
> ...
> route[HTTP_REPLY] {
> if ($http_ok) {
>
is $var(payload) right in the example? Or should it be $http_req(body)?
Cheers,
Daniel
--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - May 22-24 (USA) - www.asipto.com
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com
More information about the sr-dev
mailing list