Base64 encoding a value on a Custom Header

I am integrating with an API that needs an X-### header in the HTTP request but it needs the contents of that header to be base64 encoded. Is it possible to create a custom header that does that?

There is a library that can do the Base64 encoding
https://build.particle.io/libs/Base64RK/0.0.1/tab/Base64RK.cpp

1 Like