Skip to content

Protocol

Igor edited this page Feb 19, 2017 · 3 revisions

Protocol

RemExec uses simple http-like text protocol to communicate client with server.

Request

After client is connected to server, it's waiting for a commands. Command structure listed below:

<COMMAND> <arguments...>
[<parameter1_name>: <value1>]
[<parameter2_name>: <value2>]
[...]

<COMMAND> - name of requested command. Must be uppercase. Blank line at the end of command is important (like in http). Parameters list depends on requested command.

Example of request

Execute the 'echo-files' command with 1 file attached.

EXEC echo-files
File: 4 file.txt
test

Response

Server respond with status and body.

OK
<response_body>

or

ERROR <code> <info>

List of error codes watch in Error codes.

Example

For request in previous section:

OK
test

or, if it's error:

ERROR 2 Task not found: echo-files

Clone this wiki locally