User Tools

Site Tools


HTTP Command Server

The HTTP command server listens for POST request. The following HTML code shows how to send POST requests to the command server:

<!-- UTF8 encoded request: -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<form action="http://localhost:2000?wait=true" method="post" enctype="multipart/form-data">
  <label for="script">Script:</label>
  <textarea name="script" id="script" cols="45" rows="5">
var result = connectToCamera();
logMessage(result.message); // this writes data back to the requestor (web browser)
  <input type="submit" name="button" id="button" value="Submit" />
commandserver.txt · Last modified: 2018/03/30 16:39 by teq