[sr-dev] [kamailio/kamailio] Problem when using http_async_client with a POST (#744)
AlainDubois78
notifications at github.com
Fri Aug 12 14:25:49 CEST 2016
On a Linux 64 bits Ubuntu, I'm trying to use the http_async_client to send a POST message but whatever I set, it always suspends the current route contrary to the content of the documentation.
When I look at the C code it seems to be done on purpose as the return for the POST is different than the return from the get:
static int w_http_async_get(sip_msg_t *msg, char *query, char* rt)
{
...
return async_send_query(msg, &sdata, NULL, act);
}
static int w_http_async_post(sip_msg_t *msg, char *query, char* post, char* rt)
{
...
if(async_send_query(msg, &sdata, &post_data, act)<0)
return -1;
/* force exit in config */
return 0;
}
I was expecting the post function to work as the get one and to finish with something like:
return async_send_query(msg, &sdata, &post_data, act);
Based on the document it looks like a bug but the comment bothers me and let me think it might be done on purpose (which one?)
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/744
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20160812/be629a13/attachment.html>
More information about the sr-dev
mailing list