-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
36 lines (24 loc) · 865 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Copyright (C) 2010 Joe Noon (joe[at]stat.im)
mod_httpeval is a prosody module, similar in power to mod_console, but over http.
It evaluates straight lua code inside the scope of prosody, so most anything that
could be hard-coded directly into prosody can be run via mod_httpeval.
Configuration:
===
modules_enabled = {
... other stuff ...
"httpeval";
}
httpeval_ports = { 8190 };
httpeval_interface = "127.0.0.1";
httpeval_handshake = "some-secure-hash";
Usage:
===
POST to http://127.0.0.1:8190/http-eval/?handshake=YOUR_HANDSHAKE
(the BODY of the POST should be valid lua code)
The response will be prefixed with one of:
"Error: ", "Result: ", "Message: ", "OK: "
Your code can take that into account when examining responses.
Caution:
===
As with console, use with caution. This should probably be firewalled and
have a secure handshake.