Skip to content

Instantly share code, notes, and snippets.

@yottatsa
Created July 8, 2018 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yottatsa/22ad44174e36b7eface9a05e747cd57e to your computer and use it in GitHub Desktop.
Save yottatsa/22ad44174e36b7eface9a05e747cd57e to your computer and use it in GitHub Desktop.
Urlencoded QUERY_STRING
POST http://192.168.1.6:2870/control/AVTransport
SOAPAction: "urn:schemas-upnp-org:service:AVTransport:3#SetAVTransportURI"
Host: 192.168.1.6:2870
Content-Type: text/xml
Content-Length: 1191
<?xml version="1.0"?>
<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<u:SetAVTransportURI xmlns:u="urn:schemas-upnp-org:service:AVTransport:3">
<InstanceID>0</InstanceID>
<CurrentURI>http://192.168.1.201:8123/api/tts_proxy/8e04b9eb4902907804d0ac6c5f2b7c7a13d3a4e3_en_-_google.mp3?hello%3Des%26ca%3Dping</CurrentURI>
<CurrentURIMetaData>&lt;DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:ns1="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"&gt;&lt;item id="0" pare
ntID="0" restricted="1"&gt;&lt;dc:title&gt;Home Assistant&lt;/dc:title&gt;&lt;ns1:class&gt;object.item.audioItem&lt;/ns1:class&gt;&lt;res protocolInfo="http-get:*:audio/mpeg:DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLN
A.ORG_FLAGS=00000000000000000000000000000000"&gt;http://192.168.1.201:8123/api/tts_proxy/8e04b9eb4902907804d0ac6c5f2b7c7a13d3a4e3_en_-_google.mp3?hello%3Des%26ca%3Dping&lt;/res&gt;&lt;/item&gt;&lt;/DIDL-Lit
e&gt;</CurrentURIMetaData>
</u:SetAVTransportURI>
</s:Body>
</s:Envelope>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment