I am using SSDP to send discover request using M-SEARCH to get list of services present. My requirement is like i want to get list of share folders also which are present in that server.
目前,我以这种方式发出这一请求:
"M-SEARCH * HTTP/1.1
"
"Host: 239.255.255.250:1900
"
"Man: "ssdp:discover"
"
"ST:upnp:rootdevice
"
"MX:3
"
"
";
并且作为这些参数作出反应:
ST:upnp:rootdevice
USN:uuid:122261ae-7c37-4234-9366-ed5286752f2b::upnp:rootdevice
Location:http://172.24.17.221:2869/upnphost
Cache-Control:: max-age = 900
Server:: Linux
I also want to have shared folder list which is present on that server. How i can get that ? Any additional parameter i need to specify ? Any code snippet or ideas are welcome.