Yortw / RSSDP

Really Simple Service Discovery Protocol - a 100% .Net implementation of the SSDP protocol for publishing custom/basic devices, and discovering all device types on a network.
http://yortw.github.io/RSSDP/
MIT License
288 stars 67 forks source link

discovery HTTP-headers without CR+LF #103

Closed ThomasSchBern closed 3 years ago

ThomasSchBern commented 4 years ago

My Sony WiFi camera did not respond to discovery (SearchForRootDevices), until I fixed the http string HttpURequestMessageFormat in file SsdpDeviceLocatorBase.cs to include CR+LF , as !required! by HTTP std, like: HttpURequestMessageFormat = "{0} * HTTP/1.1\r\nHOST: {1}:{2}\r\nST: {4}\r\nMAN: \"{3}\"\r\nMX: {5}\r\n\r\n";

I'm using latest VS2019 16.8 (rtm since last week) app targeting .NET 5.0. I found this using powershell UPnP.UPnPDeviceFinder and wireshark.