Hi,

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 
:.


Tomi

On 24. Jan 2021, at 3.40, Alexander Perkins <[email protected]> 
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?

Thank you,
Alex
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to