[sr-dev] http_query/Curl Async Module : custom http headers feature request

Federico Cabiddu federico.cabiddu at gmail.com
Wed Jan 27 15:02:52 CET 2016


Hi,
this feature is implemented in the new async_http module (the name is
provisional).
Hopefully it will be merged soon.
Here you can find the pull request
https://github.com/kamailio/kamailio/pull/480

Regards,

Federico


On Wed, Jan 27, 2016 at 2:53 PM, Tim Chubb <tim.chubb at voicesimplified.com>
wrote:

> Hi
>
>
>
> 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.
>
> 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:
>
> curl --header "Authorization: Bearer <token>" https://<uri>
>
>
>
> 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?
>
>
>
> Thanks
>
>
>
> Tim.
>
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20160127/56801154/attachment.html>


More information about the sr-dev mailing list