[Gambas-user] HowTo a M-Search (UPnP)

Ingo bm.530502 at gmail.com
Sun Oct 29 14:18:28 CET 2017


Hello together,

I'd like to do a M-Search with Gamabs.

/http://www.upnp-hacks.org/upnp.html//
//When a UPnP capable device joins a network and wants to know what UPnP 
services are available on the network, it sends out a discovery message 
to the multicast address 239.255.255.250 on port 1900 via the UDP 
protocol. This message contains a header, similar to a HTTP request. 
This protocol is sometimes referred to as HTTPU (HTTP over UDP)://
////
//M-SEARCH * HTTP/1.1//
//HOST: 239.255.255.250:1900//
//MAN: ssdp:discover//
//MX: 10//
//ST: ssdp:all/

I tested with curl -K option but with no effect. Curl brings warnings like:
Warning: upnp.txt:1: warning: 'M-SEARCH' uses unquoted white space in 
the line
Warning: that may cause side-effects!
Warning: upnp.txt:1: warning: 'M-SEARCH' had unsupported trailing garbage
Warning: upnp.txt:2: warning: 'HOST' is badly used here


Is it possible to do a M-Search request maybe with httpClient?

Thank you
Regards
Ingo






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20171029/b3973642/attachment.html>


More information about the User mailing list