UPnP sending http request over UDP

I was wondering how best to get locations of IOT devices on my Lan using HTTP requests such as this

M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1900
MAN: ssdp:discover
MX: 10
ST: ssdp:all

I take it no one has ever sent a request over local LAN using UDP?  Im not sure how to form this considering the documentation is very light on HTTP requests.

Hi,

For anything in that realm you’re going to want to be digging into the socket library:

Docs: https://docs.coronalabs.com/api/library/socket/index.html

See also: https://rawgit.com/diegonehab/luasocket/master/doc/reference.html

-dev

I take it no one has ever sent a request over local LAN using UDP?  Im not sure how to form this considering the documentation is very light on HTTP requests.

Hi,

For anything in that realm you’re going to want to be digging into the socket library:

Docs: https://docs.coronalabs.com/api/library/socket/index.html

See also: https://rawgit.com/diegonehab/luasocket/master/doc/reference.html

-dev