-
Notifications
You must be signed in to change notification settings - Fork 2
Protocol Specification
The extension utilizes a backend webserver for communication between Arma and the remote console. This is done via a RESTful API. It also returns all CORS acceptance headers for any javascript-based requests.
The server accepts the following values via a HTTP/HTTPS POST method on the listening port:
user="username_plain_text" // Max 64 characters
pass="password_plain_text" // Max 64 characters
script="call my_sqf_function;" // Max 256 KB
If one of the POST variables user
, pass
, or script
are not present, the server will return a HTTP 400: Bad Request
status code.
If the username and/or password are incorrect, the server will return a HTTP 403: Forbidden
status code.
If the web server is operational and SQF is not responding (for instance, while in an external menu or mission selection screen, or anything out of a mission), the server will return a HTTP 503: Service Unavailable
status code.
All above HTTP errors will return both a status code and textual data describing the error in human readable form.
If the SQF script was successfully executed, the server will return a HTTP 200: OK
status code along with the return value of the script as the data.