By "Not Working", I mean, that the TV can be reached, but returns a 403 error. When TV is off, it's unreachable. So the Raspberry calls out to the TV.
I tried many different ways and eventually I'm working with a curl request. It works from everywhere, but not from the Raspberry:
It does work from the Raspberry, if I proxy through any other device e.g. my laptop. However, it does not work, when I proxy from laptop through the Raspberry.
Code: Select all
curl 'http://192.168.178.142:55000/nrc/control_0' \ -H 'content-type: text/xml; charset="utf-8"' \ -H 'user-agent: net.thlabs.nodecontrol' \ -H 'soapaction: "urn:panasonic-com:service:p00NetworkControl:1#X_SendKey"' \ --data-binary '<?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_MUTE-ONOFF</X_KeyEvent></u:X_SendKey></s:Body></s:Envelope>' \ --compressed
Trying for two days now, does anybody have a clue?
Stack Overflow: https://stackoverflow.com/q/47367993