8 control with http commands, Http command syntax, Control with http commands – Epiphan VGADVI Recorder User Manual
Page 183: Multiple requests at once

VGADVI Recorder User Guide
7-8 Control with HTTP Commands
7-8
Control with HTTP Commands
The VGADVI Recorder has an HTTP API interface for configuration and control by a third party application or
with a script that sends commands to the device as a series of URLs. This section covers the following topics:
l
l
HTTP Command Syntax
Control of the VGADVI Recorder by HTTP is done by sending commands to one of two URLs and specifying the
target configuration item. Syntax for the get and set commands follows.
To Get configuration settings:
http://
/admin/get_params.cgi?keyTo Set configuration settings:
http://
/admin/set_params.cgi?key=valueWhere
is the IP address of the device, key is the key for the configuration item being checked orConfiguration Keys for Third Party APIs
), and value is the value to set for the
configuration item.
Multiple Requests at Once
You can include multiple key/value pairs in a single command by separating the statements with &.
For example, the key for product name is product_name and the key for firmware version is firmware_version.
To send a request for both the product name and the firmware version, use the following command:
http://
/admin/get_params.cgi?product_name&firmware_versionOr, to set the stream type (streamtype) to ASF and the bitrate (vbitrate) to 256,000:
http://
/admin/set_params.cgi?streamtype=2&vbitrate=256K174