I looked into this a bit. Here are a few problems I seem to see with the script.
1. The grep statement around line 220 is incorrect. For a request through a proxy, the log contains the following (GNU Wget 1.11.4)
Proxy request sent, awaiting response... 200 OK
instead of what the grep statement is looking for
grep -i "
HTTP request sent" /tmp/wget.log |grep -i "200 OK"
2. The wget command used does not appear correct. Searching in the man pages, it does not appear that wget allows you to list your proxy on the command line. Instead the proxy needs to be set in an http_proxy environment variable, or in the /etc/wgetrc file. The current command is
CODE
wget -O /dev/null $KF_PROXY $testurl -o /tmp/wget.log
3. $KF_PROXY does not have any value when I echo in the script where it does the wget. It appears the read_conf function is not called until after we are at this point.
I may be missing something, but these are what initially seemed incorrect to me.