
AXIS 2400/2401
User’s Manual
Appendix E -
CGI Parameters
51
Appendix E - CGI Parameters
The Common Gateway Interface (CGI) is a standard for interfacing external applications with
information servers, such as a Web server. A CGI program within the AXIS 2400/2401 allows you
to define special video image features within an embedded URL request and generate simple
HTTP input/output operations for controlling the Pan/Tilt port.
CGI parameter requests are generated in the form of query strings appended to the URL of the
AXIS 2400/2401.
CGI Parameters for Image 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/2401
videoserv
that contains a clock reference:
Example 2
Request a highly compressed hugesize JPEG snapshot from the camera connected to VIDEO 2
on an AXIS 2400 with the DNS name
videoserv
:
http://<servername>/cgi-bin/<imagefile>?<parameter>=<value>[&<parameter>=<value>...]
Parameter/Syntax
Description
Values
camera=<n>
(applicable for AXIS
2400 only)
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-5, where:
1= minimum, 2=low,
3=medium, 4=high,
5=very high
color=<value>
Selects color or grayscale.
1 or 2; where:
1=grayscale, 2=color
clock=<value>
Shows/hides the time stamp.
on, off
motion=<n>
Shows motion JPEG image
stream
0
http://videoserv/cgi-bin/fullsize.jpg?clock=on
http://videoserv/cgi-bin/hugesize.jpg?camera=1&compression=5