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 2 made on Friday March 18, 2022 at 17:04
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,999
you are missing 2 http headers

host header and possibly a connection header.

Connection: close\r\n
Host: 192.168.70.100\r\n

I don't think you will need to URL-encode your token (did some initial sleuthing).

Try this:
socket.write("GET /apps/api/150/devices/1153/on?access_token=a43ebdcb-bc49-4a37-a419-b30304277ed6 HTTP/1.1\r\nHost: 192.168.70.100\r\nConnection: close\r\n\r\n")
Lyndel McGee
Philips Pronto Addict/Beta Tester


Hosting Services by ipHouse