PTZ_IMAGE

 

Description

Upload the PTZ/PT library image file to the camera

No matter the command was executed successfully, the device will be rebooted and the runtime configuration will not be saved.
The version of the PTZ image will be logged in the system log.

The format of this URL http://172.16.3.14/cgi-bin/update?USER=Admin&PWD=123456&PTZ_IMAGE is listed below.

Stage 1: Send this URL to the device for PTZ library image file upload

GET /cgi-bin/update?USER=admin&PWD=123456&PTZ_IMAGE HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Accept-Language: zh-tw
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Host: 172.16.3.14
Connection: Keep-Alive

Stage 2 : Device reply the URL

HTTP/1.0 200 OK
Content-type: text/html

<html><head><title>UPLOAD FILES</title></head>
<meta http-equiv="PRAGMA" content="NO-CACHE"><body>
<form name="UPLOAD_FORM" method="POST" enctype="multipart/form-data" action="update?PTZ_IMAGE_SAVE">
PTZ_IMAGE : <input type="FILE" name="URL_PTZ_IMAGE" value="" size="40">
<br>
<input type="submit" value="Apply" name="URL_FIRMWARE_SUBMIT">
<input type="reset" value="Reset" name="URL_FIRMWARE_RESET">
<br>
</form></body></html>

Stage 3: Upload the image file to device and get the return code

POST /cgi-bin/update?PTZ_IMAGE_SAVE HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Referer: http://172.16.3.14/cgi-bin/update?USER=admin&PWD=123456&PTZ_IMAGE
Accept-Language: zh-tw
Content-Type: multipart/form-data; boundary=---------------------------7d8ab36c404a8
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Host: 172.16.3.14
Content-Length: 5319
Connection: Keep-Alive
Cache-Control: no-cache

-----------------------------7d8ab36c404a8
Content-Disposition: form-data; name="URL_PTZ_IMAGE"; filename="ACTIPT.BIN"
Content-Type: application/octet-stream

......................................

-----------------------------7d8ab36c404a8
Content-Disposition: form-data; name="URL_FIRMWARE_SUBMIT"

Apply
-----------------------------7d8ab36c404a8--

Stage 4: device reply this URL

HTTP/1.0 200 OK
Content-type: text/plain
Content-Length: 3

OK

Input Argument

None

Attribute

Return of Message

OK
or
ERROR: description of error

Applicability

Status

Valid

See Also

SYSTEM_LOG

Example

http://ip:port/cgi-bin/update?USER=Admin&PWD=123456&PTZ_IMAGE

Back to

HOME, UPDATE CGI