Skip to content

Instantly share code, notes, and snippets.

@jishi
Created October 22, 2016 11:48
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 jishi/4399000fa2aebeef801c25d37eb17e5b to your computer and use it in GitHub Desktop.
Save jishi/4399000fa2aebeef801c25d37eb17e5b to your computer and use it in GitHub Desktop.
Powershell example
Invoke-WebRequest -Uri http://192.168.1.157:1400/MediaRenderer/AVTransport/Control -Method Post -Headers @{ SOAPACTION = '"urn:schemas-upnp-org:service:AVTransport:1#Play"' } -Body '<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>' -OutFile '$null'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment