User Tools

Site Tools


httpserver

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
httpserver [2016/09/20 11:09]
act
httpserver [2016/09/23 07:47] (current)
act
Line 1: Line 1:
 ====== Action Camera Toolbox HTTP server ====== ====== Action Camera Toolbox HTTP server ======
-The Action Camera Toolbox ships with a built in webserver. The server listens on a TCP port (default 2000) for incoming **POST** requests (**multipart/​form-data** encoded). These can be from any source which can send HTTP request, for instance from a webbrowser.+The Action Camera Toolbox ships with a built in webserver. The server listens on a TCP port (default 2000) for incoming **POST** requests (**multipart/​form-data** encoded). These can be from any source which can send HTTP request, for instance from a webbrowser. The request should be **UTF8** encoded.
  
 Requests support the following variables: Requests support the following variables:
Line 9: Line 9:
 The following example shows how to send a script to the HTTP server using a simple HTML form: The following example shows how to send a script to the HTTP server using a simple HTML form:
 <​code>​ <​code>​
 +<!-- 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">​ <form action="​http://​localhost:​2000?​wait=true"​ method="​post"​ enctype="​multipart/​form-data">​
   <label for="​script">​Script:</​label>​   <label for="​script">​Script:</​label>​
httpserver.txt · Last modified: 2016/09/23 07:47 by act