HTTP POST Befehl erzeugen

Alles was per HTTP gesteuert werden kann
Antworten
Urs
Beiträge: 8
Registriert: Fr 23. Okt 2020, 18:36

Fr 7. Mai 2021, 19:46

Hallo

Ich möchte meinen Panasonic TV mit dem LmAir steuern. Die HTTP Befehle kann ich mit einer Sniffer APP herausfinden. Für Vol- zeigt mir die Sniffer App folgendes an:

Request Head:

POST /nrc/control_0 HTTP/1.1
User-Agent: Panasonic Android VR-CP UPnP/2.0
Host: 192.168.1.12:55000
Content-Type: text/xml; charset="utf-8"
SOAPACTION: "urn:panasonic-com:service:p00NetworkControl:1#X_SendKey"
Content-Length: 334


Body:

<?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:X_SendKey xmlns:u="urn:panasonic-com:service:p00NetworkControl:1">
<X_KeyEvent>NRC_VOLDOWN-ONOFF</X_KeyEvent>
</u:X_SendKey>
</s:Body>
</s:Envelope>

Was muss ich nun in der Aktorenveraltung des LmAir eingeben, damit der Befehl erzeugt wird?


Habe folgendes schon probiert, was jedoch nicht funktioniert:

Auswahl:
POST

IP oder URL:
192.168.1.12:55000/nrc/control_0

Daten:
<?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:X_SendKey xmlns:u="urn:panasonic-com:service:p00NetworkControl:1">
<X_KeyEvent>NRC_VOLDOWN-ONOFF</X_KeyEvent>
</u:X_SendKey>
</s:Body>
</s:Envelope>

Vielen Dank für Eure Hilfe
Antworten