[OpenSIPS-Users] rest_client and basic authentication
tpaivaa at gmail.com
Sun Jan 24 06:42:55 EST 2021
it seems that you should just create the header by your self and add it before reguests.
rest_append_hf("Authorization: Basic <BASE64 of creds here>");
when making a request. In basic HTTP authentication, a request contains a header field in the form of Authorization: Basic <credentials>, where credentials is the Base64 encoding of ID and password joined by a single colon :.
On 24. Jan 2021, at 3.40, Alexander Perkins <alexanderhenryperkins at gmail.com> wrote:
HI All. I need to consume a RESTful web service and pass that information to avp variables. I was looking at the rest_client module, but cannot find how to authenticate using basic authentication. Does anyone have suggestions?
Users mailing list
Users at lists.opensips.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users