4XEM IPCAMWPTZ manual General CGI URL Syntax and Parameters, Get Server Parameter Values

Models: IPCAMWPTZ

1 89
Download 89 pages 41.59 Kb
Page 67
Image 67

string HTTP is line separated with a Carriage Return and Line Feed (CRLF) printed as \r\n.

Return:

HTTP/1.0 <HTTP code> <HTTP text>\r\n

URL syntax examples are written with "Example:" in bold face followed by a short description and a light grey box with the example.

Example: request a single snapshot image

http://mywebserver/cgi-bin/video.jpg

General CGI URL Syntax and Parameters

CGI parameters are written in lower-case and as one word without any underscores or other separators. When the CGI request includes internal camera parameters, the internal parameters must be written exactly as they are named in the camera or video server. The CGIs are organized in function related directories under the cgi-bin directory. The file extension of the CGI is required.

Syntax:

http://<servername>/cgi-bin/<subdir>[/<subdir>...]/<cgi>.<ext> [?<parameter>=<value>[&<parameter>=<value>...]]

Example: Setting digital output #1 to high

http://mywebserver/cgi-bin/setparam.cgi?do1=h

Get Server Parameter Values

Note: This request require administrator access

Method: GET/POST

Syntax:

http://<servername>/cgi-bin/admin/getparam.cgi?[<parameter>] [&<parameter>…]

where the <parameter> should be <group>[_<name>] or <group>[.<name>] If you

- 63 -

Page 67
Image 67
4XEM IPCAMWPTZ manual General CGI URL Syntax and Parameters, Get Server Parameter Values, Method GET/POST