<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I haven’t tested this with multiple headers actually. It’s an interesting question, but I’m not sure that it is<div class="">supported. You propably will have to dive into libcurl docs to find out.</div><div class=""><br class=""></div><div class="">If I find time later this week, I’ll try to test it myself.</div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">/O<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 17 Oct 2018, at 22:01, eyas barhouk <<a href="mailto:eyas37@hotmail.com" class="">eyas37@hotmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div id="divtagdefaultwrapper" dir="ltr" style="caret-color: rgb(0, 0, 0); font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif;" class=""><div style="margin-top: 0px; margin-bottom: 0px;" class="">thanks dear Alex </div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class=""></div><div style="margin-top: 0px; margin-bottom: 0px;" class="">i tried this function "<span class="">http_client_query(url, [post-data], [hdrs], result)" but there is no example about how to use more than one header . </span></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><span class=""><br class=""></span></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><span class="">if you can send me an example about how to setup the query with two headers like <span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 14.6667px;" class="">"content type" & "Authentication "</span></span></div><div style="margin-top: 0px; margin-bottom: 0px;" class=""><span class=""><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 14.6667px;" class="">i will be thankful .</span></span></div><p style="margin-top: 0px; margin-bottom: 0px;" class=""><span class=""><span style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 14.6667px;" class=""> </span></span></p><br class=""><br class=""><div style="" class=""><hr tabindex="-1" style="display: inline-block; width: 608.578125px;" class=""><div id="divRplyFwdMsg" dir="ltr" class=""><font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span>sr-users <<a href="mailto:sr-users-bounces@lists.kamailio.org" class="">sr-users-bounces@lists.kamailio.org</a>> on behalf of Alex Balashov <<a href="mailto:abalashov@evaristesys.com" class="">abalashov@evaristesys.com</a>><br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Wednesday, October 17, 2018 7:56 PM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>Kamailio (SER) - Users Mailing List<br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [SR-Users] HTTP Post with JSON</font><div class=""> </div></div><div class="BodyFragment"><font size="2" class=""><span style="font-size: 11pt;" class=""><div class="PlainText">On Wed, Oct 17, 2018 at 07:53:21PM +0000, eyas barhouk wrote:<br class=""><br class="">> Hello Dears<br class="">><span class="Apple-converted-space"> </span><br class="">><span class="Apple-converted-space"> </span><br class="">> i'm trying to send POST HTTP request with JSON content on Kamailio V 5.2.0.<br class="">> i have two main headers "content type" & "Authentication " in addition i have the json content .<br class="">> when i'm using curl request it look like :<br class="">><span class="Apple-converted-space"> </span><br class="">> Curl -H "Authentication ket = xxxxx" -H "content type : JSON" -d " {the JSON content}"<a href="https://xxxxx.com/send" id="LPlnk303515" class="OWAAutoLink" previewremoved="true">https://xxxxx.com/send</a><br class="">><span class="Apple-converted-space"> </span><br class="">> So how can i use the Http_client module to send such requests ??<br class=""><br class="">The answer smiles out at you in the documentation:<br class=""><br class=""><a href="https://kamailio.org/docs/modules/5.1.x/modules/http_client.html#http_client.f.http_query" id="LPlnk827476" class="OWAAutoLink" previewremoved="true">https://kamailio.org/docs/modules/5.1.x/modules/http_client.html#http_client.f.http_query</a><br class=""><br class="">-- Alex<br class=""><br class="">--<span class="Apple-converted-space"> </span><br class="">Alex Balashov | Principal | Evariste Systems LLC<br class=""><br class="">Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)<span class="Apple-converted-space"> </span><br class="">Web:<span class="Apple-converted-space"> </span><a href="http://www.evaristesys.com/" id="LPlnk934756" class="OWAAutoLink" previewremoved="true">http://www.evaristesys.com/</a>,<span class="Apple-converted-space"> </span><a href="http://www.csrpswitch.com/" id="LPlnk23102" class="OWAAutoLink" previewremoved="true">http://www.csrpswitch.com/</a><br class=""><br class="">_______________________________________________<br class="">Kamailio (SER) - Users Mailing List<br class=""><a href="mailto:sr-users@lists.kamailio.org" class="">sr-users@lists.kamailio.org</a><br class=""><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" id="LPlnk497576" class="OWAAutoLink" previewremoved="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br class=""></div></span></font></div></div></div><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Kamailio (SER) - Users Mailing List</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><a href="mailto:sr-users@lists.kamailio.org" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">sr-users@lists.kamailio.org</a><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a></div></blockquote></div><br class=""></div></body></html>