views:

87

answers:

0

hi ,

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.

Currently , i am sending this request in this format :

"M-SEARCH * HTTP/1.1\r\n"
    "Host: 239.255.255.250:1900\r\n" 
    "Man: \"ssdp:discover\"\r\n"
    "ST:upnp:rootdevice\r\n"
    "MX:3\r\n"
    "\r\n";

And i get response as these parameters :

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.