[SR-Users] HTTP Post with JSON
Alex Balashov
abalashov at evaristesys.com
Wed Oct 17 21:56:33 CEST 2018
On Wed, Oct 17, 2018 at 07:53:21PM +0000, eyas barhouk wrote:
> Hello Dears
>
>
> i'm trying to send POST HTTP request with JSON content on Kamailio V 5.2.0.
> i have two main headers "content type" & "Authentication " in addition i have the json content .
> when i'm using curl request it look like :
>
> Curl -H "Authentication ket = xxxxx" -H "content type : JSON" -d " {the JSON content}" https://xxxxx.com/send
>
> So how can i use the Http_client module to send such requests ??
The answer smiles out at you in the documentation:
https://kamailio.org/docs/modules/5.1.x/modules/http_client.html#http_client.f.http_query
-- Alex
--
Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
More information about the sr-users
mailing list