(replace 192.168.1.50 with your tv's ip)
here you can fetch some "publickey" (crypted session key????)
Code: Select all
curl -H "Accept-Encoding: aes128" http://192.168.1.50:55001/connect
Code: Select all
curl -D - -H 'SOAPACTION: "urn:samsung.com:service:MainTVAgent2:1#StartCloneView"' -H 'Content-Type: text/xml;charset="utf-8"' -d '<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:StartCloneView xmlns:u="urn:samsung.com:service:MainTVAgent2:1"><ForcedFlag>Normal</ForcedFlag></u:StartCloneView></s:Body></s:Envelope>' http://192.168.1.50:7676/smp_8_
Code: Select all
POST /smp_8_ HTTP/1.0
HOST: 192.168.1.50:7676
CONTENT-LENGTH: 273
CONTENT-TYPE: text/xml;charset="utf-8"
USER-AGENT: DLNADOC/1.50 SEC_HHP_GT-I9100/1.0
SOAPACTION: "urn:samsung.com:service:MainTVAgent2:1#StartCloneView"
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:StartCloneView xmlns:u
="urn:samsung.com:service:MainTVAgent2:1"><ForcedFlag>Normal</ForcedFlag></u:StartCloneView></s:Body></s:Envelope>
Code: Select all
HTTP/1.1 200 OK
Content-Length: 338
Content-Type: text/xml; charset="utf-8"
EXT:
SERVER: UPnP/1.0
Connection: close
<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:StartCloneViewResponse xmlns:u="urn:samsung.com:service:MainTVAgent2:1"><Result>NOTOK_InvalidDevice</Result></u:StartCloneViewResponse>
</s:Body>
</s:Envelope>
let me know if you have some hints.
thnx.
arris