anker
1
Hi,
I am trying to use the wget function to retrieve a html.
l_status, l_result = luup.inet.wget(“http://www.cnn.com”)
This snippet only returnes the header info and not what I want, i.e. the actual html.
Anybody can figure out what I am doing wrong?
/anker
futzle
2
http://www.cnn.com/ seems to be a 302 redirect to http://edition.cnn.com/. See if going straight for the “real” page helps.
Ap15e
3
l_status, l_result = luup.inet.wget("http://edition.cnn.com/")
luup.variable_set( 'urn:upnp-ap15e-com:serviceId:WAI1', 'Location', tostring( l_result ), 16904 )
;D