Instruction manual
Appendix E -
CGI Parameters
AXIS 2400 Administration Manual
52
Appendix E - CGI Parameters
The Common Gateway Interface (CGI) is a standard for interfacing external applications with
information servers, such as HTTP or Web servers. A CGI program within the AXIS 2400 allows
you to define special video image features within an embedded URL request.
You generate CGI parameter requests in the form of query strings appended to the URL of the
AXIS 2400. You can also use CGI parameters for simple HTTP input/output operations on the
Pan/Tilt port.
CGI Parameters for Snapshot Requests
For snapshot requests, use this syntax:
This table lists the CGI parameters for snapshot requests:
Example 1
Request a fullsize JPEG snapshot from the default camera connected to the AXIS 2400
videoserv
that contains a clock reference:
Example 2
Request a highly compressed hugesize JPEG snapshot from the camera connected to VIDEO 2
on
videoserv:
http://<servername>/cgi-bin/<imagefile>?
<parameter>=<value>[&<parameter>=<value>...]
Parameter/Syntax Description Values
camera=<n>
Selects the source for
generating snapshots. If
omitted, the default camera is
used.
1,2,3 or 4
compression=
<value>
Adjusts the image quality and
file size.
1-4, where:
1= minimum, 2=low,
3=medium, 4=high
color=<value> Selects color or grayscale.
0 or 1; where:
0=grayscale, 1=color
clock=<value> Shows/hides the time stamp.
0 or 1; where:
0=off, 1=on
http://videoserv/
cgi-bin/
fullsize.jpg?clock=on
http://videoserv/
cgi-bin/
hugesize.jpg?camera=2&compression=2