Send
CommandMiscellaneous
send [debug]httppost[port] {host} {path} {data}Also searchable as: Send · http · web request · post
send sends an HTTP POST request to a web server. The server’s reply is then run as an EasyUO script,
as if it had been started with call: when it ends, the script goes on after the
send.
Parameters
Section titled “Parameters”| Parameter | Meaning |
|---|---|
httppost |
Send to port 80. Add a port number to use another one: httppost8080. Put debug in front (debughttppost) to see the request and the reply in two message boxes. |
host |
The server, such as www.example.com. |
path |
The page, such as /euo/action.php. |
data |
The form data, such as name=value&other=value. |
#SendHeader adds lines to the request’s header. The script waits until the reply
has arrived. An empty reply runs nothing.
Example
Section titled “Example”set %nick Bobset %text Helloset %data nick= , %nick , &text= , %textsend httppost www.example.com /euo/chat.php %datahaltSee also
Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.