Skip to content

Instantly share code, notes, and snippets.

@yottatsa
Created July 8, 2018 15:35
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/e3e2f4ca367f8513e4a396ac6bd256da to your computer and use it in GitHub Desktop.
Save yottatsa/e3e2f4ca367f8513e4a396ac6bd256da to your computer and use it in GitHub Desktop.
Unescaped URL
2018-07-08 16:31:35 DEBUG (MainThread) [async_upnp_client.async_upnp_client.traffic] Sending request:
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=es&amp;ca=ping</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" parentID="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;DLNA.ORG_FLAGS=00000000000000000000000000000000"&gt;http://192.168.1.201:8123/api/tts_proxy/8e04b9eb4902907804d0ac6c5f2b7c7a13d3a4e3_en_-_google.mp3?hello=es&amp;amp;ca=ping&lt;/res&gt;&lt;/item&gt;&lt;/DIDL-Lite&gt;</CurrentURIMetaData>
</u:SetAVTransportURI>
</s:Body>
</s:Envelope>
2018-07-08 16:31:35 DEBUG (MainThread) [homeassistant.components.media_player.dlna_dmr] <homeassistant.components.media_player.dlna_dmr.HassUpnpRequester object at 0x10ebb3160>.async_http_request(): method: POST, soap_action: "urn:schemas-upnp-org:service:AVTransport:3#SetAVTransportURI"
2018-07-08 16:31:35 DEBUG (MainThread) [async_upnp_client.async_upnp_client.traffic] Got response:
200
CONTENT-LENGTH: 241
CONTENT-TYPE: text/xml; charset="utf-8"
DATE: Sun, 08 Jul 2018 15:31:31 GMT
EXT:
SERVER: IPI/1.0 UPnP/1.0 DLNADOC/1.50
<s:Envelope
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:SetAVTransportURIResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:3"/>
</s:Body>
</s:Envelope>
2018-07-08 16:31:35 DEBUG (MainThread) [async_upnp_client.async_upnp_client.traffic] Sending request:
POST http://192.168.1.6:2870/control/AVTransport
SOAPAction: "urn:schemas-upnp-org:service:AVTransport:3#Play"
Host: 192.168.1.6:2870
Content-Type: text/xml
Content-Length: 392
<?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:Play xmlns:u="urn:schemas-upnp-org:service:AVTransport:3">
<InstanceID>0</InstanceID>
<Speed>1</Speed>
</u:Play>
</s:Body>
</s:Envelope>
2018-07-08 16:31:35 DEBUG (MainThread) [homeassistant.components.media_player.dlna_dmr] <homeassistant.components.media_player.dlna_dmr.HassUpnpRequester object at 0x10ebb3160>.async_http_request(): method: POST, soap_action: "urn:schemas-upnp-org:service:AVTransport:3#Play"
2018-07-08 16:31:35 DEBUG (MainThread) [async_upnp_client.async_upnp_client.traffic] Got response:
200
CONTENT-LENGTH: 228
CONTENT-TYPE: text/xml; charset="utf-8"
DATE: Sun, 08 Jul 2018 15:31:32 GMT
EXT:
SERVER: IPI/1.0 UPnP/1.0 DLNADOC/1.50
<s:Envelope
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:PlayResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:3"/>
</s:Body>
</s:Envelope>
2018-07-08 16:31:35 DEBUG (MainThread) [async_upnp_client.async_upnp_client.traffic] Sending request:
POST http://192.168.1.6:2870/control/AVTransport
SOAPAction: "urn:schemas-upnp-org:service:AVTransport:3#GetTransportInfo"
Host: 192.168.1.6:2870
Content-Type: text/xml
Content-Length: 399
<?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:GetTransportInfo xmlns:u="urn:schemas-upnp-org:service:AVTransport:3">
<InstanceID>0</InstanceID>
</u:GetTransportInfo>
</s:Body>
</s:Envelope>
2018-07-08 16:31:35 DEBUG (MainThread) [homeassistant.components.media_player.dlna_dmr] <homeassistant.components.media_player.dlna_dmr.HassUpnpRequester object at 0x10ebb3160>.async_http_request(): method: POST, soap_action: "urn:schemas-upnp-org:service:AVTransport:3#GetTransportInfo"
2018-07-08 16:31:36 DEBUG (MainThread) [async_upnp_client.async_upnp_client.traffic] Got response:
200
CONTENT-LENGTH: 413
CONTENT-TYPE: text/xml; charset="utf-8"
DATE: Sun, 08 Jul 2018 15:31:32 GMT
EXT:
SERVER: IPI/1.0 UPnP/1.0 DLNADOC/1.50
<s:Envelope
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetTransportInfoResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:3">
<CurrentTransportState>TRANSITIONING</CurrentTransportState>
<CurrentTransportStatus>OK</CurrentTransportStatus>
<CurrentSpeed>1</CurrentSpeed>
</u:GetTransportInfoResponse>
</s:Body>
</s:Envelope>
2018-07-08 16:31:38 DEBUG (MainThread) [async_upnp_client.async_upnp_client.traffic] Sending request:
POST http://192.168.1.6:2870/control/AVTransport
SOAPAction: "urn:schemas-upnp-org:service:AVTransport:3#GetTransportInfo"
Host: 192.168.1.6:2870
Content-Type: text/xml
Content-Length: 399
<?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:GetTransportInfo xmlns:u="urn:schemas-upnp-org:service:AVTransport:3">
<InstanceID>0</InstanceID>
</u:GetTransportInfo>
</s:Body>
</s:Envelope>
2018-07-08 16:31:38 DEBUG (MainThread) [homeassistant.components.media_player.dlna_dmr] <homeassistant.components.media_player.dlna_dmr.HassUpnpRequester object at 0x10ebb3160>.async_http_request(): method: POST, soap_action: "urn:schemas-upnp-org:service:AVTransport:3#GetTransportInfo"
2018-07-08 16:31:38 DEBUG (MainThread) [async_upnp_client.async_upnp_client.traffic] Got response:
200
CONTENT-LENGTH: 413
CONTENT-TYPE: text/xml; charset="utf-8"
DATE: Sun, 08 Jul 2018 15:31:34 GMT
EXT:
SERVER: IPI/1.0 UPnP/1.0 DLNADOC/1.50
<s:Envelope
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:GetTransportInfoResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:3">
<CurrentTransportState>TRANSITIONING</CurrentTransportState>
<CurrentTransportStatus>OK</CurrentTransportStatus>
<CurrentSpeed>1</CurrentSpeed>
</u:GetTransportInfoResponse>
</s:Body>
</s:Envelope>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment