You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to reply to a SSDP search request and it does reply but for some odd reason the other device doesn't do anything. I just want to make sure everything is working correctly with this php library:
HTTP/1.1 200 OK
NT: urn:schemas-upnp-org:device:basic:1
SERVER: node.js/0.10.28 UPnP/1.1
ST: urn:schemas-upnp-org:device:basic:1
USN: uuid:Socket-1_0-221438K0100073::urn:Belkin:device:**
LOCATION: http://192.168.10.145:80/description.xml
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=1800
EXT:
DATE: Sun, 06 Jan 2019 04:00:35 GMT
Received from 192.168.56.102:50772 (php)
HTTP/1.1 200 OK
NT: urn:schemas-upnp-org:device:basic:1
SERVER: node.js/0.10.28 UPnP/1.1
ST: urn:schemas-upnp-org:device:basic:1
USN: uuid:Socket-1_0-221438K0100073::urn:Belkin:device:**
LOCATION: http://192.168.56.102:80/description.xml
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=1800
EXT:
DATE: Sun, 06 Jan 2019 04:00:35 GMT
I just find it very odd that with the PHP code the other device (amazon alexa) does not query the xml location for php . Oddly enough the device does query it if I run nodejs. I can change the IP to match and still same issue. Any ideas or suggestions? Thanks.
The text was updated successfully, but these errors were encountered:
@ikkysleepy Thank you for this excellent question!
SSDP builds on top of HTTP over UDP, so your reply message would have to adhere to HTTP semantics. In particular, HTTP header lines have to be terminated with CRLF (\r\n) instead of just LF (\n).
Other than that, I'm afraid your question is a bit out of scope for this project. As an alternative, there's also an open issue in clue/reactphp-ssdp#4 to eventually add this as part of said library. Perhaps you can help contributing there?
I am trying to reply to a SSDP search request and it does reply but for some odd reason the other device doesn't do anything. I just want to make sure everything is working correctly with this php library:
I have the code working fine in nodejs:
The replies from both seem to be identical:
I just find it very odd that with the PHP code the other device (amazon alexa) does not query the xml location for php . Oddly enough the device does query it if I run nodejs. I can change the IP to match and still same issue. Any ideas or suggestions? Thanks.
The text was updated successfully, but these errors were encountered: