[Libwebsockets] Addin http auth to http header

Andy Green andy at warmcat.com
Wed Feb 28 11:00:46 CET 2018

On 28/02/18 00:45, Ofer Avitzur wrote:
> Hi
> I am using libwebsockets as client and I want to add http authentication 
> to my connect flow as client (HTTP Basic authentication scheme ([RFC2617]))
> What is the best way to do it using libwebsockets api's

Have a look in libwebsockets.h for 

You need to use the base64 stuff lws also provides to add an 
Authorization: header.  This already exists as a known header index 


> Thanks!
> _______________________________________________
> Libwebsockets mailing list
> Libwebsockets at ml.libwebsockets.org
> https://libwebsockets.org/mailman/listinfo/libwebsockets

More information about the Libwebsockets mailing list