beautypg.com

Cgi commands, Upload/download configuration – Cisco WVC80N User Manual

Page 36

background image

Appendix D

CGI Commands

35

Wireless-N Internet Home Monitoring Camera

Upload/Download Configuration

Download Configuration Content

Method:

GET

URL:

http:///adm/admcfg.cfg

Return:

HTTP/1.0 200 OK \r\n

content-type: application/configuration\r\n

\r\n

All data in the configuration is encoded in a Base64 format. Please refer to the encoder/decoder sample codes
at the end of this appendix.
To validate the data, there is a hidden checksum inside the configuration content. Because the dword-aligned
checksum algorithm is used, the last data misaligned by dword can be ignored.

Upload Configuration Content

Method:

POST

URL:

http:///adm/upload.cgi

Message body:

All data in the configuration is encoded in a Base64 format. Please refer to the encoder/decoder sample

codes at the end of this appendix.

The Camera automatically reboots after receiving and loading the configuration content.

Return:

HTTP/1.0 200 OK \r\n

content-type: text/plain\r\n

\r\n

OK\r\n