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.

Home Page:http://yortw.github.io/RSSDP/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

discovery HTTP-headers without CR+LF

ThomasSchBern opened this issue · comments

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.