# POST $http_req(hdr) = "Content-Type: application/x-www-form-urlencoded";
$http_req(body) = "r_uri=$rU&f_uri=$fU";
http_async_query("http://example.com/test.php", "HTTP_REPLY");
where should i look?However, when i try to send in the example format:Yes. 400 response is from server side.Web server is not in my access and since its https request tcpdump will not help until i get specific certificates. I replaced the URL here.Hi, Brandon and FedericoThank you for your reply.# POST $http_req(body) = "r_uri=$rU&f_uri=$fU"; http_async_query("https://Its working fine without any header specification.examp le.com/test.php", "HTTP_REPLY");# POST $http_req(hdr) = "Content-Type: application/json";It results in
$http_req(method) = "POST";
$http_req(body) = "{'r_uri':'" + $rU + "', 'f_uri':'" + $fU + "'}"; http_async_query("https://examp le.com/test.php", "HTTP_REPLY");
INFO: <script>: route[HTTP_REPLY]: status 400
INFO: <script>: route[HTTP_REPLY]: body Insufficient parameters.--
regards,
abdul basit | p: +92 32 1416 4196 | o: +92 30 0841 1445On 13 July 2017 at 13:46, Federico Cabiddu <federico.cabiddu@gmail.com> wrote:______________________________Hi,this has nothing to do with the module. The reply is coming from your http server.In the first request you are sending a json body with "Content-Type: application/x-www-form-urlencoded" while it should be "Content-Type: application/json". In the second request you are sending a totally different body.You should check your webserver's logs.Best regards,Federico Cabiddu_________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users