how to authentificate over DLNA?
Posted: Mon Apr 05, 2010 8:02 pm
Not much discussed within the SamyGO-project, there are various experiments to send messages to the DLNA Message Box Service on the Samsung TVs but nobody had success yet. The XML syntax is clear because there are other DLNA-DMC capable devices but for some reasons, the TV denies the http-requests as unauthorized (http error 401).
Has somebody an idea how to authorize any computer so that the TV accepts messages and displays them?
On a german forum, someone sent some sample code:
I tried to add an authorization parameter to the HTTP-reader containing "uuid: UDN_NUMBER" as value but with no success. Maybe it does not matter if there is an authorization line or not. As far as I understand the EXEdsp, the routines do not ask for an authorization parameter. Maybe, the authentification works somehow different.
The syntax seems to be usable because if it is formated differently, the server returns "invalid request - 402".
Has somebody an idea how to authorize any computer so that the TV accepts messages and displays them?
On a german forum, someone sent some sample code:
Code: Select all
POST /PMR/event/MessageBoxService HTTP/1.1
Host: 192.168.178.20:52235
SoapAction: "urn:samsung.com:service:MessageBoxService:1#AddMessage"
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<soap:Body>
<u:AddMessage xmlns:u="urn:samsung.com:service:MessageBoxService:1">
<MessageID>12345</MessageID>
<MessageType>text/xml; charset="utf-8"</MessageType>
<Message>hello world</Message>
</u:AddMessage>
</soap:Body>
</soap:Envelope>
The syntax seems to be usable because if it is formated differently, the server returns "invalid request - 402".