Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 6 made on Saturday June 13, 2020 at 15:09
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,568
You can find a Base64 encode/decode method here.

[Link: scotch.io]

Look at the 2nd section for browsers that don't support the encoding natively. There is a single-line object defined that you can use in Pronto to encode the HTTP Request Header if you want to build your own http client as I did in the first example.

Authentication: Basic [base64 encoded username:password string]

Add the HTTP Request header with this...

socket.write("Authentication: Basic base64string\r\n");
Lyndel McGee
Philips Pronto Addict/Beta Tester


Hosting Services by ipHouse