parent proxy script

Hello everyone maybe my question will seem simple but it will help me alot.
i have MT 2.9.6 and i use my web-proxy with parent proxy 217.65.150.3:3300 and this proxy is different form my gateway and dns ip so all i want to do is to put a script to check if my proxy can receive webpages from this parent or not. i don’t want to check the ping on this proxy because this proxy is always available in ping but sometimes it stop provide webpages. let’s say i want a script to check every 2 minutes if my web-proxy can receive http://www.google.com from the parent 217.65.150.3:3300 if yes do nothing if no changed to 0.0.0.0:0000
best regards

you may try to use ‘fetch’ command… but it’s available only in v3

no problem i have another MT 4.1 can u plz write the script that i should put it on?
best regards

something like

/tool fetch mode=http address=217.65.150.3 port=3300 host="www.google.com" src-path="/" dst-path="test.txt"

and then analyze the contents of “test.txt” file

can u plz write the entire script?
best regards