VGADVI Broadcaster User Guide
7-8 Control with HTTP Commands
7-8
Control with HTTP Commands
The VGADVI Broadcaster 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
HTTP Command Syntax
l
HTTP Command Examples
HTTP Command Syntax
Control of the VGADVI Broadcaster 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://<address>/admin/
get_params.cgi
?key
To Set configuration settings:
http://<address>/admin/
set_params.cgi
?key=value
Where <address> is the IP address of the device, key is the key for the configuration item being checked or
changed (see the list in
Configuration 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://<address>/admin/get_params.cgi?product_name&firmware_version
Or, to set the stream type (streamtype) to ASF and the bitrate (vbitrate) to 256,000:
http://<address>/admin/set_params.cgi?streamtype=2&vbitrate=256K
173