Skip to content

POST command

Alvin Cheng edited this page Feb 2, 2023 · 2 revisions

Description

This is the post command, this command is used for sending a http post request to a remote server. The first argument is the URL to send the request to. The second argument is the data in an object format, more information about the object command can be found here. And finally, the final argument is the variable to return the data into. If you did not understand what I just said, here's an example!!

What is post?!?!?!?!

POST is a method of communicating with a remote server, another method of communicating with a remote server on REST can be GET. For more information regrading POSTor GET methods you can checkout this post!

Example

$OBJ_VARIABLE = (object (key: "<VALUE>";));
$OBJ_RETURN_VALUE = (post "<URL>" $OBJ_VARIABLE);

Clone this wiki locally