Vivotek VS2403 manual General CGI URL syntax and parameters, Get server parameter values

Page 65

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 server parameters, the internal parameters must be written exactly as they are named in the server 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>...]]

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 do not specify the any parameters, all the parameters on the server will be returned. If you specify only <group>, the parameters of related group will be returned.

When query parameter values, the current parameter value are returned. Successful control requests returns paramter pairs as follows.

Return:

HTTP/1.0 200 OK\r\n Content-Type: text/html\r\n Context-Length: <length>\r\n \r\n

<parameter pair>

where <parameter pair> is <parameter>=<value>\r\n <length> is the actual length of content.

Example: request IP address and it’s response

Request: http://192.168.0.123/cgi-bin/admin/getparam.cgi?network_ipaddress

Response:

- 64 -

www.vivotek.com

Image 65
Contents Page Technical@vivotek.com Before You Use Table of Contents Frequently Asked Questions Package Contents Features and Benefits Remote system upgrade Bundled powerful surveillance softwarePrivacy mask Built-in motion detectionStatus LED’s Physical DescriptionFront Panel Auxiliary button Reset DIP switches 1 toBNC video inputs LED status DescriptionEthernet 10/100 socket Rear PanelCOM port General I/O terminal blockDigital I/O control Power sourceRS485 interface Power adapter How to Install Power on Hardware installationEthernet Environment Cable connectionEasy way with installer program Software installationPage First access to Video Server How to UseSet password of administrator Complete the network settingsAuthentication Installing Plug-in Main Graphic modeText mode Video input selection System configurationVideo quality selection Video size selectionMotorized camera control Custom camera commandsIntroduction System ConfigurationAdjust date and time Definitions of ConfigurationSystem parameters Change host nameSecurity privilege Basic network settings Network settingsFix the IP address PPPoEPage Ddns & UPnP Enable DdnsMail & FTP Mail settingsFTP settings Deny list Access listAllow list Adjust image settings Enable video channelsConfigure attached motorized camera Video, camera mapping and motion detectionConfigure privacy mask Configure motion detectionSelect default video source Set video modulationPage Custom commands Port settingsCamera Control Choose serial interfaceHomepage layout Image modeText mode Application constitution External command scriptWeekly schedule Event operationSending method Sequential operationView parameters Factory defaultView log file Capture Up-to-date Still Images Advanced FunctionsGet snapshot via URL Get snapshot via FTPDisplay all video Get Continuous ImagesSelect video source and quality and size Get triggered snapshots via URL Download Event-triggered SnapshotsGet triggered snapshots via FTP Channel name Folder nameFile name Value Description Send snapshots to external Smtp email server Uploading Snapshots PeriodicallyUpload snapshots to external FTP server Object File name Customize Graphics in HomepageParameter explanation Command Script for Complex ApplicationsCommand format Page Practical examples Command line DescriptionQuery status of digital inputs URL for External Device ControlDrive digital outputs Move motorized camera in PTZ directionTransparent Remote Serial Driver Send command to device attached to COM1Send command to device attached to COM2 Restore Factory Default Settings via URL URL of System MaintenanceDownload System Log via FTP Restart System via URLConfigure System via FTP Viewmode Security Usercount Username 0root Userattr 0video1video2video3video4camctrldidoconf System core debugging Telnet CommandsMonitor changed status of digital inputs Stop information dumpingReset system Restore factory default settingsPower-On-Self-Test TroubleshootingLED pattern after Post Failed function Troubleshooting AppendixReset System recoveryFrequently Asked Questions Page Page Easy way via Installation Wizard Upgrade System FirmwareHomepage name Referenced URL URL Commands of Video ServerURL Resource name Referenced URL System resource URLMethod GET/POST General CGI URL syntax and parametersGet server parameter values Nosync Set server parameter valuesAvailable parameters on the server WirelessVideo Serverwith Pan/Tilt/ZoomYyyy/mm/dd HhmmssSkip to invoke default server 255.255.255.0 Group Security192.168.0.99 LAN Usernameemail 255.255.255.255 Group IPFilterAddress Ntsc PAL For Ntsc onlyNtsc & Cmos Group Motion1~4Group CAMCTRL1~4 Script.vssx Group Feature Camera model Baud rate Data bits Stop bit Parity bit Settings of Supported PTZ CamerasCamera Control Cable Time Zone Table Page GMT+1000 Hobart Vladivostok GMT+1100 Networking Technical SpecificationsElectromagnetic Compatibility EMC