The Fetch script command sends an http POST or GET request to the current IP variable, according to the current variables on the Fetch panel (IP, Timeout, Sitename, Page, Port, and basic authentication username:password). Should a reply be received, a parsing script will be run associated with the current Sitename and Page.
Syntax: | Fetch | Comment | |||
Example: | ![]() |
Fetch the currently selected IP, Sitename, Page, and Port with currently selected timeout | |||
Associated command may be bound to Fetch to set any or all current choices | |||||
Example: | ![]() |
IP | = | 192.168.2.252 | Associated command to set IP destination |
![]() |
Timeout | = | 5 | Associated command to set Timeout | |
![]() |
HTTPMethod | = | GET | Associated command to set Method to GET | |
![]() |
HTTPSitename | = | "Well Monitor" | Associated command to set Sitename | |
![]() |
HTTPPage | = | jsdata.txt | Associated command to set Page | |
![]() |
HTTPPort | = | 80 | Associated command to set Port | |
![]() |
HTTPUsername:Password | = | admin:pw | Associated command to set basic authentication username & password | |
![]() |
Ping 192.168.1.1 with 5sec timeout | ||||
Associated command may be bound to Fetch to set or add lines to the header | |||||
Example: | ![]() |
HTTPHeader | = | expression | Associated command to set header to expression text |
![]() |
HTTPHeader | = | expression | Associated command to add expression text to header along with line terminating CR,LF | |
![]() |
fetch | ||||
Associated command may be bound to Fetch to set or add lines to the body, such as for form parameters using the POST method. (Form parameters would be appended to the Page variable when using the GET method.) | |||||
Example: | ![]() |
HTTPBody | = | expression | Associated command to set body to expression text |
![]() |
HTTPBody | = | expression | Associated command to add expression text to body along with line terminating CR,LF | |
![]() |
fetch |
Notes: