Forum Discussion
1 Reply
Sort By
- Andy_McGrathCumulonimbus
External Monitor is the best way using 'rdexec' and 'curl' with proxy:
rdexec [] curl -x, --proxy <[protocol://][user:password@]proxyhost[:port]>
E.g. to hit wwww.google.com using proxy 192.168.1.1 on port 8080 using proxy username 'testuser' and password 'password1' and looking for a response of "200 OK" in an external monitor script:
rdexec 1 curl -fNsi http://216.58.210.4/ -H 'Host: www.google.com' --proxy http://192.168.1.1:8080 --proxy-user testuser:password1 | grep -i "200 OK" 2>&1 > /dev/null