I'm trying to send a command to a Sonos Play:1.
I have things I have to send already copied with wireshark. My problem is how to send this with one of the blocks the right way.
HTTP request block always fails with the special chars.
Here the code I want to send:
POST /MediaRenderer/AVTransport/Control HTTP/1.1
CONNECTION: close
ACCEPT-ENCODING: gzip
HOST: 192.168.178.46:1400
USER-AGENT: Linux UPnP/1.0 Sonos/41.3-50131 (ACR_:samsung:dreamltexx:SM-G950F)
CONTENT-LENGTH: 266
CONTENT-TYPE: text/xml; charset="utf-8"
X-SONOS-TARGET-UDN: uuid:RINCON_949F3E140B0801400
SOAPACTION: "urn:schemas-upnp-org:service:AVTransport:1#Play"
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:Play xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID><Speed>1</Speed></u:Play></s:Body></s:Envelope>
"<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body><u:Play xmlns:u=\"urn:schemas-upnp-org:service:AVTransport:1\"><InstanceID>0</InstanceID><Speed>1</Speed></u:Play></s:Body></s:Envelope>"
{ "X-SONOS-TARGET-UDN": "uuid:RINCON_949F3E140B0801400", "SOAPACTION": "urn:schemas-upnp-org:service:AVTransport:1#Play" }