w w w . s m a x . c o m . t w
Chapter 6.
P 71
Example:
---------------------------------------------------------------------------
POST /cgi/admin/firmwareupgrade.cgi HTTP/1.1\r\n
Content-Type: multipart/form-data;
boundary=AsCg5y\r\n
Content-Length: <content length>\r\n
\r\n
--AsCg5y\r\n
Content-Disposition: form-data; name="firmware.bin";
filename="firmware.bin"\r\n
Content-Type: application/octet-stream\r\n
\r\n
<firmware file content>
--AsCg5y\r\n
---------------------------------------------------------------------------
Return:
6.1.2.2. Factory Default
Return:
OK
HTTP/1.1 200 OK\r\n
Content-Type: text/plain\r\n
Content-Length: <content length>\r\n
\r\n
OK\r\n
FAIL
HTTP/1.1 200 OK\r\n
Content-Type: text/plain\r\n
Content-Length: <content length>\r\n
\r\n
Request failed: <error message>\r\n
6.1.2.2. Firmware upgrade
Method: POST
Syntax:
---------------------------------------------------------------------------
http:// camera_ip:port /cgi/admin
/firmwareupgrade.cgi
---------------------------------------------------------------------------
OK
HTTP/1.1 200 OK\r\n
Content-Type: text/plain\r\n
Content-Length: <content length>\r\n
\r\n
OK\r\n
FAIL
HTTP/1.1 200 OK\r\n
Content-Type: text/plain\r\n
Content-Length: <content length>\r\n
\r\n
Request failed: <error message>\r\n