OL oddities
-
I've never seen a plugin use this - the semantics are somewhat weird. I do know that the implementation is not correct in the current verison of openLuup (or, indeed, any to date.)
http://wiki.micasaverde.com/index.php/Luup_Lua_extensions#function:_request
-
A Post unlike a get, requires a body. Therefore the syntax will be significantly different and you cannot submit the request in one line like the get. The wget by definition can only send get.
See here for an example of a post syntax:
-
Wget has a command line switch and will do post. However I cannot get luup.inet.wget to do it. Maybe the inbuilt needs to just learn how to handle the —postdata switch?
@prophead said in OL oddities:
Wget has a command line switch and will do post. However I cannot get luup.inet.wget to do it. Maybe the inbuilt needs to just learn how to handle the —postdata switch?
Yes, but luup.inet.wget() is not the command line wget.
Also, even now, I’m loathe to stray from Vera’s definition of standard luup calls (although I have not always stuck to that.)