[OpenSIPS-Devel] OpenSIPS 2.4 rest_post behavior
SamyGo
govoiper at gmail.com
Wed Jan 3 14:10:22 EST 2018
Hi,
I've upgraded my opensips from 2.2.x to 2.4 version for testing and
rest_client module has different results from older version.
If I make a rest_post() query to the URL then the $var(body) contains the
whole HTTP message along with the body eg:
xlog("L_INFO","[XLOG-API] HTTP SERVER Body:$var(body) \n");
Prints:
[XLOG-API] HTTP SERVER Body:HTTP/1.1 200 OK#015#012Date: Wed, 03 Jan 2018
18:56:44 GMT#015#012Content-Type: text/plain;charset=UTF-8#015#012Server:
Apache#015#012Content-Length: 4#015#012#015#012PASS
While the same line on older version Prints:
[XLOG-API] HTTP SERVER Body:PASS
VERSION:
version: opensips 2.4.0-dev (x86_64/linux)
flags: STATS: On, SHM_EXTRA_STATS, DISABLE_NAGLE, USE_MCAST, SHM_MMAP,
PKG_MALLOC, QM_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
git revision: d1a4419
main.c compiled on 18:03:59 Dec 2 2017 with gcc 4.8
Kindly advise is there is any discrepancy in my script usage or bug in the
backend code.
Regards,
Sammy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20180103/de7ec2bf/attachment.html>
More information about the Devel
mailing list