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.