<div dir="ltr">Hi,<div>this feature is implemented in the new async_http module (the name is provisional).</div><div>Hopefully it will be merged soon.</div><div>Here you can find the pull request</div><div><a href="https://github.com/kamailio/kamailio/pull/480">https://github.com/kamailio/kamailio/pull/480</a><br></div><div><br></div><div>Regards,</div><div><br></div><div>Federico</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 27, 2016 at 2:53 PM, Tim Chubb <span dir="ltr"><<a href="mailto:tim.chubb@voicesimplified.com" target="_blank">tim.chubb@voicesimplified.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-GB" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal">Hi <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Would it be possible to have a means of specifying additional request headers, i.e. things like the Authorization header, so that you would be able to make use of services which use a token based AAA system such as OAuth.<u></u><u></u></p>
<p class="MsoNormal">From the cli its trivial to invoke curl with additional headers i.e. if I was to query such a service it would simply be something like this:<u></u><u></u></p>
<p class="MsoNormal">curl --header "Authorization: Bearer <token>" <a href="https://%3curi" target="_blank">
https://<uri</a>><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Ideally having an optional parameter on http_request/curl_http_request where you could provide a delimited string of additional headers, as without that sort of functionality the usefulness of http requests is pretty limited against modern
 web services.  If this is already possible could someone guide me to the documentation which documents this ability?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></p><span class="HOEnZb"><font color="#888888">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Tim.<u></u><u></u></p>
</font></span></div>
</div>

<br>_______________________________________________<br>
sr-dev mailing list<br>
<a href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
<br></blockquote></div><br></div>